pub enum SimpleKind {
Show 20 variants
Int,
Int8,
Int16,
Int32,
Int64,
Uint,
Uint8,
Uint16,
Uint32,
Uint64,
Uintptr,
Byte,
Float32,
Float64,
Complex64,
Complex128,
Rune,
Bool,
String,
Unit,
}Variants§
Int
Int8
Int16
Int32
Int64
Uint
Uint8
Uint16
Uint32
Uint64
Uintptr
Byte
Float32
Float64
Complex64
Complex128
Rune
Bool
String
Unit
Implementations§
Source§impl SimpleKind
impl SimpleKind
pub fn leaf_name(self) -> &'static str
pub fn from_name(name: &str) -> Option<SimpleKind>
pub fn is_arithmetic(self) -> bool
pub fn is_ordered(self) -> bool
pub fn is_unsigned_int(self) -> bool
pub fn is_signed_int(self) -> bool
pub fn is_float(self) -> bool
pub fn is_complex(self) -> bool
pub fn numeric_family(self) -> Option<NumericFamily>
Trait Implementations§
Source§impl Clone for SimpleKind
impl Clone for SimpleKind
Source§fn clone(&self) -> SimpleKind
fn clone(&self) -> SimpleKind
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 SimpleKind
impl Debug for SimpleKind
Source§impl Hash for SimpleKind
impl Hash for SimpleKind
Source§impl PartialEq for SimpleKind
impl PartialEq for SimpleKind
Source§fn eq(&self, other: &SimpleKind) -> bool
fn eq(&self, other: &SimpleKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SimpleKind
impl Eq for SimpleKind
impl StructuralPartialEq for SimpleKind
Auto Trait Implementations§
impl Freeze for SimpleKind
impl RefUnwindSafe for SimpleKind
impl Send for SimpleKind
impl Sync for SimpleKind
impl Unpin for SimpleKind
impl UnsafeUnpin for SimpleKind
impl UnwindSafe for SimpleKind
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