pub struct BackRideHeight(/* private fields */);Implementations§
Source§impl BackRideHeight
impl BackRideHeight
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 BackRideHeight
impl BackRideHeight
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 BackRideHeight
impl Clone for BackRideHeight
Source§fn clone(&self) -> BackRideHeight
fn clone(&self) -> BackRideHeight
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 BackRideHeight
impl Debug for BackRideHeight
Source§impl Default for BackRideHeight
impl Default for BackRideHeight
Source§impl From<BackRideHeight> for u16
impl From<BackRideHeight> for u16
Source§fn from(v: BackRideHeight) -> Self
fn from(v: BackRideHeight) -> Self
Converts to this type from the input type.
Source§impl From<u16> for BackRideHeight
impl From<u16> for BackRideHeight
Source§impl ToCanFrame for BackRideHeight
impl ToCanFrame for BackRideHeight
impl Copy for BackRideHeight
Auto Trait Implementations§
impl Freeze for BackRideHeight
impl RefUnwindSafe for BackRideHeight
impl Send for BackRideHeight
impl Sync for BackRideHeight
impl Unpin for BackRideHeight
impl UnwindSafe for BackRideHeight
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