pub enum ResolvedType {
Show 18 variants
Unit,
Bool,
Int(IntSize),
Float(FloatSize),
String,
Char,
Array(Box<ResolvedType>, usize),
Slice(Box<ResolvedType>),
Tuple(Vec<ResolvedType>),
Option(Box<ResolvedType>),
Result(Box<ResolvedType>, Box<ResolvedType>),
Ref {
mutable: bool,
inner: Box<ResolvedType>,
},
Function {
params: Vec<ResolvedType>,
ret: Box<ResolvedType>,
effects: EffectSet,
},
Struct(String, HashMap<String, ResolvedType>),
Enum(String, Vec<(String, ResolvedType)>),
Generic(String),
Never,
Unknown,
}Expand description
Fully resolved type
Variants§
Unit
Bool
Int(IntSize)
Float(FloatSize)
String
Char
Array(Box<ResolvedType>, usize)
Slice(Box<ResolvedType>)
Tuple(Vec<ResolvedType>)
Option(Box<ResolvedType>)
Result(Box<ResolvedType>, Box<ResolvedType>)
Ref
Function
Struct(String, HashMap<String, ResolvedType>)
Enum(String, Vec<(String, ResolvedType)>)
Generic(String)
Never
Unknown
Trait Implementations§
Source§impl Clone for ResolvedType
impl Clone for ResolvedType
Source§fn clone(&self) -> ResolvedType
fn clone(&self) -> ResolvedType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedType
impl Debug for ResolvedType
Source§impl PartialEq for ResolvedType
impl PartialEq for ResolvedType
impl StructuralPartialEq for ResolvedType
Auto Trait Implementations§
impl Freeze for ResolvedType
impl RefUnwindSafe for ResolvedType
impl Send for ResolvedType
impl Sync for ResolvedType
impl Unpin for ResolvedType
impl UnwindSafe for ResolvedType
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