#[repr(u8)]pub enum PrimitiveTy {
U8 = 0,
U16 = 1,
U32 = 2,
U64 = 3,
I8 = 4,
I16 = 5,
I32 = 6,
I64 = 7,
Bool = 8,
F32 = 9,
F64 = 10,
}Variants§
Implementations§
Source§impl PrimitiveTy
impl PrimitiveTy
pub const fn display_str(self) -> &'static str
Trait Implementations§
Source§impl Clone for PrimitiveTy
impl Clone for PrimitiveTy
Source§fn clone(&self) -> PrimitiveTy
fn clone(&self) -> PrimitiveTy
Returns a duplicate 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 PrimitiveTy
impl Debug for PrimitiveTy
Source§impl<'de> Deserialize<'de> for PrimitiveTy
impl<'de> Deserialize<'de> for PrimitiveTy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PrimitiveTy
impl Display for PrimitiveTy
Source§impl From<PrimitiveTy> for u8
impl From<PrimitiveTy> for u8
Source§fn from(enum_value: PrimitiveTy) -> Self
fn from(enum_value: PrimitiveTy) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PrimitiveTy
impl PartialEq for PrimitiveTy
Source§impl Serialize for PrimitiveTy
impl Serialize for PrimitiveTy
Source§impl TryFrom<u8> for PrimitiveTy
impl TryFrom<u8> for PrimitiveTy
Source§type Error = TryFromPrimitiveError<PrimitiveTy>
type Error = TryFromPrimitiveError<PrimitiveTy>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PrimitiveTy
impl TryFromPrimitive for PrimitiveTy
const NAME: &'static str = "PrimitiveTy"
type Primitive = u8
type Error = TryFromPrimitiveError<PrimitiveTy>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for PrimitiveTy
impl Eq for PrimitiveTy
impl StructuralPartialEq for PrimitiveTy
Auto Trait Implementations§
impl Freeze for PrimitiveTy
impl RefUnwindSafe for PrimitiveTy
impl Send for PrimitiveTy
impl Sync for PrimitiveTy
impl Unpin for PrimitiveTy
impl UnwindSafe for PrimitiveTy
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.