pub struct AltitudeCompensation(/* private fields */);
Expand description
Altitude compensation value ranging from 0 m to 65535 m above sea level.
Implementations§
Source§impl AltitudeCompensation
impl AltitudeCompensation
Sourcepub const fn to_be_bytes(&self) -> [u8; 2]
pub const fn to_be_bytes(&self) -> [u8; 2]
Returns a big endian byte representation of the altitude compensation value.
Trait Implementations§
Source§impl Debug for AltitudeCompensation
impl Debug for AltitudeCompensation
Source§impl From<u16> for AltitudeCompensation
impl From<u16> for AltitudeCompensation
Source§impl PartialEq for AltitudeCompensation
impl PartialEq for AltitudeCompensation
Source§impl TryFrom<&[u8]> for AltitudeCompensation
impl TryFrom<&[u8]> for AltitudeCompensation
Source§fn try_from(data: &[u8]) -> Result<Self, Self::Error>
fn try_from(data: &[u8]) -> Result<Self, Self::Error>
Converts buffered data to an AltitudeCompensation value.
§Errors
- ReceivedBufferWrongSize if the
data
buffer is not big enough for the data that should have been received. - CrcFailed if the CRC of the received data does not match.
impl StructuralPartialEq for AltitudeCompensation
Auto Trait Implementations§
impl Freeze for AltitudeCompensation
impl RefUnwindSafe for AltitudeCompensation
impl Send for AltitudeCompensation
impl Sync for AltitudeCompensation
impl Unpin for AltitudeCompensation
impl UnwindSafe for AltitudeCompensation
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