pub enum TypeKind {
Unit,
Bool,
Char,
Int(IntTy),
Uint(UintTy),
Float(FloatTy),
FnDef(DefId, Vec<TypeInfo>),
Ptr(Box<TypeInfo>),
Ref(bool, Box<TypeInfo>),
}
Variants§
Unit
Bool
Char
Int(IntTy)
Uint(UintTy)
Float(FloatTy)
FnDef(DefId, Vec<TypeInfo>)
Ptr(Box<TypeInfo>)
Ref(bool, Box<TypeInfo>)
Implementations§
source§impl TypeKind
impl TypeKind
pub const fn is_unit(&self) -> bool
pub const fn is_integer(&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§
Auto Trait Implementations§
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