Enum donet_core::dctype::DCTypeEnum
source · #[repr(u8)]pub enum DCTypeEnum {
Show 21 variants
TInt8 = 0,
TInt16 = 1,
TInt32 = 2,
TInt64 = 3,
TUInt8 = 4,
TChar = 8,
TUInt16 = 5,
TUInt32 = 6,
TUInt64 = 7,
TFloat32 = 9,
TFloat64 = 10,
TString = 11,
TVarString = 12,
TBlob = 13,
TVarBlob = 14,
TBlob32 = 19,
TVarBlob32 = 20,
TArray = 15,
TVarArray = 16,
TStruct = 17,
TMethod = 18,
}
Expand description
The DCTypeEnum variants have assigned u8 values to keep compatibility with Astron’s DC hash inputs.
Variants§
TInt8 = 0
TInt16 = 1
TInt32 = 2
TInt64 = 3
TUInt8 = 4
TChar = 8
TUInt16 = 5
TUInt32 = 6
TUInt64 = 7
TFloat32 = 9
TFloat64 = 10
TString = 11
TVarString = 12
TBlob = 13
TVarBlob = 14
TBlob32 = 19
TVarBlob32 = 20
TArray = 15
TVarArray = 16
TStruct = 17
TMethod = 18
Trait Implementations§
source§impl Clone for DCTypeEnum
impl Clone for DCTypeEnum
source§fn clone(&self) -> DCTypeEnum
fn clone(&self) -> DCTypeEnum
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DCTypeEnum
impl Debug for DCTypeEnum
source§impl Display for DCTypeEnum
impl Display for DCTypeEnum
source§impl From<DCTypeEnum> for DCNumericType
impl From<DCTypeEnum> for DCNumericType
source§fn from(value: DCTypeEnum) -> Self
fn from(value: DCTypeEnum) -> Self
Converts to this type from the input type.
source§impl From<DCTypeEnum> for DCTypeDefinition
impl From<DCTypeEnum> for DCTypeDefinition
Creates a new DCTypeDefinition struct with a DC type set.
source§fn from(value: DCTypeEnum) -> Self
fn from(value: DCTypeEnum) -> Self
Converts to this type from the input type.
source§impl PartialEq for DCTypeEnum
impl PartialEq for DCTypeEnum
impl Eq for DCTypeEnum
impl StructuralPartialEq for DCTypeEnum
Auto Trait Implementations§
impl Freeze for DCTypeEnum
impl RefUnwindSafe for DCTypeEnum
impl Send for DCTypeEnum
impl Sync for DCTypeEnum
impl Unpin for DCTypeEnum
impl UnwindSafe for DCTypeEnum
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)