pub enum TypeNature {
Show 16 variants
Any,
Derived,
Elementary,
Magnitude,
Num,
Real,
Int,
Signed,
Unsigned,
Duration,
Bit,
Chars,
String,
Char,
Date,
__VLA,
}Variants§
Any
Derived
Elementary
Magnitude
Num
Real
Int
Signed
Unsigned
Duration
Bit
Chars
String
Char
Date
__VLA
Implementations§
Source§impl TypeNature
impl TypeNature
pub fn derives_from(self, other: TypeNature) -> bool
pub fn is_numerical(&self) -> bool
pub fn is_real(&self) -> bool
pub fn is_bit(&self) -> bool
Trait Implementations§
Source§impl Clone for TypeNature
impl Clone for TypeNature
Source§fn clone(&self) -> TypeNature
fn clone(&self) -> TypeNature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TypeNature
impl Debug for TypeNature
Source§impl<'de> Deserialize<'de> for TypeNature
impl<'de> Deserialize<'de> for TypeNature
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 TypeNature
impl Display for TypeNature
Source§impl Hash for TypeNature
impl Hash for TypeNature
Source§impl PartialEq for TypeNature
impl PartialEq for TypeNature
Source§fn eq(&self, other: &TypeNature) -> bool
fn eq(&self, other: &TypeNature) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TypeNature
impl Serialize for TypeNature
impl Copy for TypeNature
impl Eq for TypeNature
impl StructuralPartialEq for TypeNature
Auto Trait Implementations§
impl Freeze for TypeNature
impl RefUnwindSafe for TypeNature
impl Send for TypeNature
impl Sync for TypeNature
impl Unpin for TypeNature
impl UnsafeUnpin for TypeNature
impl UnwindSafe for TypeNature
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