pub enum GpsDataByte {
MsbPadded(u8),
LsbPadded(u8),
Byte(u8),
}Available on crate feature
gps only.Expand description
GpsDataByte aligned to 32 bits
Variants§
MsbPadded(u8)
2-bit MSB padding. Usually used at the beginning or stream termination by computers.
LsbPadded(u8)
2-bit LSB padding. Usually used at the beginning or stream termination by computers.
Byte(u8)
Plain byte
Implementations§
Source§impl GpsDataByte
impl GpsDataByte
Sourcepub fn msb_padded(byte: u8) -> Self
pub fn msb_padded(byte: u8) -> Self
Stores provided byte as 2-bit MSB padded u8
Sourcepub fn lsb_padded(byte: u8) -> Self
pub fn lsb_padded(byte: u8) -> Self
Stores provided byte as 2-bit LSB padded u8
Trait Implementations§
Source§impl Debug for GpsDataByte
impl Debug for GpsDataByte
Auto Trait Implementations§
impl Freeze for GpsDataByte
impl RefUnwindSafe for GpsDataByte
impl Send for GpsDataByte
impl Sync for GpsDataByte
impl Unpin for GpsDataByte
impl UnsafeUnpin for GpsDataByte
impl UnwindSafe for GpsDataByte
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