pub enum PrimitiveType {
Show 15 variants
Bool,
Char,
Str,
U8,
U16,
U32,
U64,
U128,
U256,
I8,
I16,
I32,
I64,
I128,
I256,
}Variants§
Bool
bool type
Char
char type
Str
str type
U8
u8
U16
u16
U32
u32
U64
u64
U128
u128
U256
256 bits unsigned int (no rust equivalent)
I8
i8
I16
i16
I32
i32
I64
i64
I128
i128
I256
256 bits signed int (no rust equivalent)
Implementations§
Source§impl PrimitiveType
impl PrimitiveType
pub fn to_primitive_type(tp: &TypeDefPrimitive) -> Self
pub fn is_primitive_type(type_name: &str) -> bool
Trait Implementations§
Source§impl Debug for PrimitiveType
impl Debug for PrimitiveType
Source§impl Display for PrimitiveType
impl Display for PrimitiveType
Source§impl FromStr for PrimitiveType
impl FromStr for PrimitiveType
Source§impl IntoEnumIterator for PrimitiveType
impl IntoEnumIterator for PrimitiveType
type Iterator = PrimitiveTypeIter
fn iter() -> PrimitiveTypeIter ⓘ
Source§impl PartialEq for PrimitiveType
impl PartialEq for PrimitiveType
Source§impl TryFrom<&str> for PrimitiveType
impl TryFrom<&str> for PrimitiveType
impl StructuralPartialEq for PrimitiveType
Auto Trait Implementations§
impl Freeze for PrimitiveType
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnwindSafe for PrimitiveType
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