pub struct FrontRideHeight(/* private fields */);Implementations§
Source§impl FrontRideHeight
impl FrontRideHeight
Sourcepub const fn with_rh_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_rh_checked(self, value: f32) -> Result<Self, ()>
Ride height to sensor
Bits: 0..16
Source§impl FrontRideHeight
impl FrontRideHeight
Sourcepub fn try_with_rh(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_rh(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_rh but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_rh(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_rh(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_rh but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for FrontRideHeight
impl Clone for FrontRideHeight
Source§fn clone(&self) -> FrontRideHeight
fn clone(&self) -> FrontRideHeight
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 FrontRideHeight
impl Debug for FrontRideHeight
Source§impl Default for FrontRideHeight
impl Default for FrontRideHeight
Source§impl From<FrontRideHeight> for u16
impl From<FrontRideHeight> for u16
Source§fn from(v: FrontRideHeight) -> Self
fn from(v: FrontRideHeight) -> Self
Converts to this type from the input type.
Source§impl From<u16> for FrontRideHeight
impl From<u16> for FrontRideHeight
Source§impl ToCanFrame for FrontRideHeight
impl ToCanFrame for FrontRideHeight
impl Copy for FrontRideHeight
Auto Trait Implementations§
impl Freeze for FrontRideHeight
impl RefUnwindSafe for FrontRideHeight
impl Send for FrontRideHeight
impl Sync for FrontRideHeight
impl Unpin for FrontRideHeight
impl UnwindSafe for FrontRideHeight
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