#[repr(u8)]
pub enum DataType {
U8,
S8,
U16,
S16,
U32,
S32,
U64,
S64,
F32,
F64,
}
Variants
U8
S8
U16
S16
U32
S32
U64
S64
F32
F64
Implementations
Trait Implementations
sourceimpl TryFrom<u8> for DataType
impl TryFrom<u8> for DataType
type Error = TryFromPrimitiveError<DataType>
type Error = TryFromPrimitiveError<DataType>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for DataType
impl TryFromPrimitive for DataType
type Primitive = u8
const NAME: &'static str = "DataType"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for DataType
impl Eq for DataType
impl StructuralEq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more