pub enum TypeKind {
Unit,
Bool,
Char,
Int(IntTy),
Uint(UintTy),
Float(FloatTy),
FnDef(DefId, Vec<TypeInfo>),
Str,
Ptr(bool, Box<TypeInfo>),
Ref(bool, Box<TypeInfo>),
Struct(DefId, String),
}
Variants§
Unit
Bool
Char
Int(IntTy)
Uint(UintTy)
Float(FloatTy)
FnDef(DefId, Vec<TypeInfo>)
Str
Ptr(bool, Box<TypeInfo>)
Ref(bool, Box<TypeInfo>)
Struct(DefId, String)
Implementations§
source§impl TypeKind
impl TypeKind
pub const fn is_unit(&self) -> bool
pub const fn is_integer(&self) -> bool
pub const fn is_signed_integer(&self) -> bool
pub const fn is_float(&self) -> bool
pub fn get_falsy_value(&self) -> ValueTree
source§impl TypeKind
impl TypeKind
pub fn get_i128() -> Self
pub fn get_i64() -> Self
pub fn get_i32() -> Self
pub fn get_i16() -> Self
pub fn get_i8() -> Self
pub fn get_u128() -> Self
pub fn get_u64() -> Self
pub fn get_u32() -> Self
pub fn get_u16() -> Self
pub fn get_u8() -> Self
pub fn get_f32() -> Self
pub fn get_f64() -> Self
pub fn get_bool() -> Self
pub fn get_char() -> Self
Trait Implementations§
source§impl Ord for TypeKind
impl Ord for TypeKind
source§impl PartialEq for TypeKind
impl PartialEq for TypeKind
source§impl PartialOrd for TypeKind
impl PartialOrd for TypeKind
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TypeKind
impl StructuralPartialEq for TypeKind
Auto Trait Implementations§
impl Freeze for TypeKind
impl RefUnwindSafe for TypeKind
impl Send for TypeKind
impl Sync for TypeKind
impl Unpin for TypeKind
impl UnwindSafe for TypeKind
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