pub enum MirTypeExpr {
Named(String),
Pointer {
item: Box<MirTypeExpr>,
},
Array {
item: Box<MirTypeExpr>,
len: usize,
},
Slice {
item: Box<MirTypeExpr>,
},
Tuple(Vec<MirTypeExpr>),
Apply {
callee: String,
args: Vec<MirTypeExpr>,
},
}Expand description
Type syntax retained in MIR for emitted aggregate declarations.
Variants§
Named(String)
Named type constructor.
Pointer
Pointer type constructor.
Fields
§
item: Box<MirTypeExpr>Type of the pointed-to value.
Array
Fixed-size array type constructor.
Slice
Borrowed slice type constructor.
Fields
§
item: Box<MirTypeExpr>Type of the pointed-to value.
Tuple(Vec<MirTypeExpr>)
Tuple type constructor.
Apply
Type application with explicit arguments.
Fields
§
args: Vec<MirTypeExpr>Explicit type arguments to the constructor.
Trait Implementations§
Source§impl Clone for MirTypeExpr
impl Clone for MirTypeExpr
Source§fn clone(&self) -> MirTypeExpr
fn clone(&self) -> MirTypeExpr
Returns a copy 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 MirTypeExpr
impl Debug for MirTypeExpr
Source§impl PartialEq for MirTypeExpr
impl PartialEq for MirTypeExpr
impl Eq for MirTypeExpr
impl StructuralPartialEq for MirTypeExpr
Auto Trait Implementations§
impl Freeze for MirTypeExpr
impl RefUnwindSafe for MirTypeExpr
impl Send for MirTypeExpr
impl Sync for MirTypeExpr
impl Unpin for MirTypeExpr
impl UnwindSafe for MirTypeExpr
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