pub enum DataType {
Show 35 variants
Bool = 1,
Byte = 30,
I8 = 2,
I16 = 3,
I32 = 4,
I64 = 21,
U8 = 5,
U16 = 6,
U32 = 7,
U64 = 27,
F32 = 8,
F64 = 17,
String = 9,
U8Array = 10,
U16Array = 11,
I24 = 16,
I40 = 18,
I48 = 19,
I56 = 20,
U24 = 22,
U40 = 24,
U48 = 25,
U56 = 26,
Bit1 = 48,
Bit2 = 49,
Bit3 = 50,
Bit4 = 51,
Bit5 = 52,
Bit6 = 53,
Bit7 = 54,
Bit8 = 55,
TimeOfDay = 12,
TimeDifference = 13,
Domain = 15,
Raw = 65_535,
}Expand description
Data Type
Variants§
Bool = 1
BIT
Byte = 30
BYTE
I8 = 2
SINT
I16 = 3
INT
I32 = 4
DINT
I64 = 21
LINT
U8 = 5
USINT
U16 = 6
UINT
U32 = 7
UDINT
U64 = 27
ULINT
F32 = 8
REAL
F64 = 17
LREAL
String = 9
STRING(n) a.k.a. visiable string
U8Array = 10
ARRAY of BYTE a.k.a. Octet String
U16Array = 11
ARRAY of UINT a.k.a. Unicode String
I24 = 16
I40 = 18
I48 = 19
I56 = 20
U24 = 22
U40 = 24
U48 = 25
U56 = 26
Bit1 = 48
BIT 1
Bit2 = 49
BIT 2
Bit3 = 50
BIT 3
Bit4 = 51
BIT 4
Bit5 = 52
BIT 5
Bit6 = 53
BIT 6
Bit7 = 54
BIT 7
Bit8 = 55
BIT 8
TimeOfDay = 12
Time of Day
TimeDifference = 13
Time Difference
Domain = 15
Domain
Raw = 65_535
Trait Implementations§
Source§impl FromPrimitive for DataType
impl FromPrimitive for DataType
Source§fn from_i64(n: i64) -> Option<DataType>
fn from_i64(n: i64) -> Option<DataType>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<DataType>
fn from_u64(n: u64) -> Option<DataType>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreimpl 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 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