pub enum Type {
Int,
Long,
UInt,
ULong,
Fun {
ptypes: Vec<Type>,
return_type: Box<Type>,
},
}Variants§
Implementations§
Source§impl Type
impl Type
pub fn is_function(&self) -> bool
pub fn get_ptypes(&self) -> Option<&Vec<Type>>
pub fn get_rtype(&self) -> Option<&Type>
pub fn get_size(&self) -> u64
pub fn get_common(t1: &Self, t2: &Self) -> Self
pub fn is_signed(&self) -> bool
pub fn is_unsigned(&self) -> bool
Trait Implementations§
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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