pub enum ByteOrder {
LittleEndian = 1,
BigEndian = 0,
}Expand description
Byte order (endianness) for signal encoding in CAN messages.
In DBC files, byte order is specified as:
0= BigEndian (Motorola format)1= LittleEndian (Intel format)
Variants§
LittleEndian = 1
Little-endian byte order (Intel format, 1 in DBC files).
Bytes are ordered from least significant to most significant.
BigEndian = 0
Big-endian byte order (Motorola format, 0 in DBC files).
Bytes are ordered from most significant to least significant.
Trait Implementations§
impl Copy for ByteOrder
impl Eq for ByteOrder
impl StructuralPartialEq for ByteOrder
Auto Trait Implementations§
impl Freeze for ByteOrder
impl RefUnwindSafe for ByteOrder
impl Send for ByteOrder
impl Sync for ByteOrder
impl Unpin for ByteOrder
impl UnwindSafe for ByteOrder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)