pub struct VcuTestMessage(/* private fields */);Implementations§
Source§impl VcuTestMessage
impl VcuTestMessage
Sourcepub const fn three_bits(&self) -> u8
pub const fn three_bits(&self) -> u8
Bits: 0..3
Sourcepub const fn with_three_bits_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_three_bits_checked(self, value: u8) -> Result<Self, ()>
Bits: 0..3
Sourcepub const fn with_three_bits(self, value: u8) -> Self
pub const fn with_three_bits(self, value: u8) -> Self
Bits: 0..3
Sourcepub const fn set_three_bits(&mut self, value: u8)
pub const fn set_three_bits(&mut self, value: u8)
Bits: 0..3
Sourcepub const fn float_value(&self) -> f32
pub const fn float_value(&self) -> f32
Bits: 3..35
Sourcepub const fn with_float_value_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_float_value_checked(self, value: f32) -> Result<Self, ()>
Bits: 3..35
Sourcepub const fn with_float_value(self, value: f32) -> Self
pub const fn with_float_value(self, value: f32) -> Self
Bits: 3..35
Sourcepub const fn set_float_value(&mut self, value: f32)
pub const fn set_float_value(&mut self, value: f32)
Bits: 3..35
Sourcepub const fn with_five_bits_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_five_bits_checked(self, value: u8) -> Result<Self, ()>
Bits: 35..40
Sourcepub const fn with_five_bits(self, value: u8) -> Self
pub const fn with_five_bits(self, value: u8) -> Self
Bits: 35..40
Sourcepub const fn set_five_bits(&mut self, value: u8)
pub const fn set_five_bits(&mut self, value: u8)
Bits: 35..40
Sourcepub const fn sixteen_bits(&self) -> u16
pub const fn sixteen_bits(&self) -> u16
Bits: 40..56
Sourcepub const fn with_sixteen_bits_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_sixteen_bits_checked(self, value: u16) -> Result<Self, ()>
Bits: 40..56
Sourcepub const fn with_sixteen_bits(self, value: u16) -> Self
pub const fn with_sixteen_bits(self, value: u16) -> Self
Bits: 40..56
Sourcepub const fn set_sixteen_bits(&mut self, value: u16)
pub const fn set_sixteen_bits(&mut self, value: u16)
Bits: 40..56
Sourcepub const fn signed_8_bits(&self) -> i8
pub const fn signed_8_bits(&self) -> i8
Bits: 56..64
Sourcepub const fn with_signed_8_bits_checked(self, value: i8) -> Result<Self, ()>
pub const fn with_signed_8_bits_checked(self, value: i8) -> Result<Self, ()>
Bits: 56..64
Sourcepub const fn with_signed_8_bits(self, value: i8) -> Self
pub const fn with_signed_8_bits(self, value: i8) -> Self
Bits: 56..64
Sourcepub const fn set_signed_8_bits(&mut self, value: i8)
pub const fn set_signed_8_bits(&mut self, value: i8)
Bits: 56..64
Source§impl VcuTestMessage
impl VcuTestMessage
Sourcepub fn try_with_float_value(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_float_value(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_float_value but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_float_value(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_float_value(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_float_value but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for VcuTestMessage
impl Clone for VcuTestMessage
Source§fn clone(&self) -> VcuTestMessage
fn clone(&self) -> VcuTestMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VcuTestMessage
impl Debug for VcuTestMessage
Source§impl Default for VcuTestMessage
impl Default for VcuTestMessage
Source§impl From<VcuTestMessage> for u64
impl From<VcuTestMessage> for u64
Source§fn from(v: VcuTestMessage) -> Self
fn from(v: VcuTestMessage) -> Self
Converts to this type from the input type.
Source§impl From<u64> for VcuTestMessage
impl From<u64> for VcuTestMessage
Source§impl ToCanFrame for VcuTestMessage
impl ToCanFrame for VcuTestMessage
impl Copy for VcuTestMessage
Auto Trait Implementations§
impl Freeze for VcuTestMessage
impl RefUnwindSafe for VcuTestMessage
impl Send for VcuTestMessage
impl Sync for VcuTestMessage
impl Unpin for VcuTestMessage
impl UnwindSafe for VcuTestMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more