pub enum BasicType {
Byte,
Char,
Ubyte,
Short,
Ushort,
Int,
Uint,
Int64,
Uint64,
Float,
Double,
}
Expand description
Basic numeric types
Variants§
Byte
Signed 1 byte integer
Char
ISO/ASCII character
Ubyte
Unsigned 1 byte integer
Short
Signed 2 byte integer
Ushort
Unsigned 2 byte integer
Int
Signed 4 byte integer
Uint
Unsigned 4 byte integer
Int64
Signed 8 byte integer
Uint64
Unsigned 8 byte integer
Float
Single precision floating point number
Double
Double precision floating point number
Implementations§
source§impl BasicType
impl BasicType
pub fn is_i8(self) -> bool
pub fn is_char(self) -> bool
pub fn is_u8(self) -> bool
pub fn is_i16(self) -> bool
pub fn is_u16(self) -> bool
pub fn is_i32(self) -> bool
pub fn is_u32(self) -> bool
pub fn is_i64(self) -> bool
pub fn is_u64(self) -> bool
pub fn is_f32(self) -> bool
pub fn is_f64(self) -> bool
Trait Implementations§
source§impl From<BasicType> for VariableType
impl From<BasicType> for VariableType
source§impl PartialEq for BasicType
impl PartialEq for BasicType
impl Copy for BasicType
impl Eq for BasicType
impl StructuralPartialEq for BasicType
Auto Trait Implementations§
impl Freeze for BasicType
impl RefUnwindSafe for BasicType
impl Send for BasicType
impl Sync for BasicType
impl Unpin for BasicType
impl UnwindSafe for BasicType
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