pub struct FrontWheelTemp(/* private fields */);Implementations§
Source§impl FrontWheelTemp
impl FrontWheelTemp
Sourcepub const fn wheel_temp(&self) -> f32
pub const fn wheel_temp(&self) -> f32
As-measured wheel temperature
Bits: 0..16
Sourcepub const fn with_wheel_temp_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_wheel_temp_checked(self, value: f32) -> Result<Self, ()>
As-measured wheel temperature
Bits: 0..16
Sourcepub const fn with_wheel_temp(self, value: f32) -> Self
pub const fn with_wheel_temp(self, value: f32) -> Self
As-measured wheel temperature
Bits: 0..16
Sourcepub const fn set_wheel_temp(&mut self, value: f32)
pub const fn set_wheel_temp(&mut self, value: f32)
As-measured wheel temperature
Bits: 0..16
Source§impl FrontWheelTemp
impl FrontWheelTemp
Sourcepub fn try_with_wheel_temp(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_wheel_temp(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_wheel_temp but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_wheel_temp(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_wheel_temp(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_wheel_temp but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for FrontWheelTemp
impl Clone for FrontWheelTemp
Source§fn clone(&self) -> FrontWheelTemp
fn clone(&self) -> FrontWheelTemp
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 FrontWheelTemp
impl Debug for FrontWheelTemp
Source§impl Default for FrontWheelTemp
impl Default for FrontWheelTemp
Source§impl From<FrontWheelTemp> for u16
impl From<FrontWheelTemp> for u16
Source§fn from(v: FrontWheelTemp) -> Self
fn from(v: FrontWheelTemp) -> Self
Converts to this type from the input type.
Source§impl From<u16> for FrontWheelTemp
impl From<u16> for FrontWheelTemp
Source§impl ToCanFrame for FrontWheelTemp
impl ToCanFrame for FrontWheelTemp
impl Copy for FrontWheelTemp
Auto Trait Implementations§
impl Freeze for FrontWheelTemp
impl RefUnwindSafe for FrontWheelTemp
impl Send for FrontWheelTemp
impl Sync for FrontWheelTemp
impl Unpin for FrontWheelTemp
impl UnwindSafe for FrontWheelTemp
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