#[non_exhaustive]pub enum DataType {
Boolean = 1,
Integer8 = 2,
Integer16 = 3,
Integer32 = 4,
Unsigned8 = 5,
Unsigned16 = 6,
Unsigned32 = 7,
Real32 = 8,
Real64 = 17,
Integer64 = 21,
Unsigned64 = 27,
}Expand description
A CANopen basic data type.
The discriminant is the CiA 301 data type index (the object index under
which the type is described, e.g. UNSIGNED32 is 0x0007).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Boolean = 1
BOOLEAN (0x0001), 1 byte.
Integer8 = 2
INTEGER8 (0x0002), 1 byte.
Integer16 = 3
INTEGER16 (0x0003), 2 bytes.
Integer32 = 4
INTEGER32 (0x0004), 4 bytes.
Unsigned8 = 5
UNSIGNED8 (0x0005), 1 byte.
Unsigned16 = 6
UNSIGNED16 (0x0006), 2 bytes.
Unsigned32 = 7
UNSIGNED32 (0x0007), 4 bytes.
Real32 = 8
REAL32 (0x0008), 4 bytes.
Real64 = 17
REAL64 (0x0011), 8 bytes.
Integer64 = 21
INTEGER64 (0x0015), 8 bytes.
Unsigned64 = 27
UNSIGNED64 (0x001B), 8 bytes.
Implementations§
Trait Implementations§
impl Copy for DataType
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin for DataType
impl UnwindSafe for DataType
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