pub enum TypeDef<'a> {
Regular {
ident: String,
align: Option<u64>,
items: Vec<(Type<'a>, usize)>,
},
Union {
ident: String,
align: Option<u64>,
variations: Vec<Vec<(Type<'a>, usize)>>,
},
Opaque {
ident: String,
align: u64,
size: u64,
},
}Expand description
QBE aggregate type definition
Variants§
Implementations§
Trait Implementations§
Source§impl<'a> Ord for TypeDef<'a>
impl<'a> Ord for TypeDef<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for TypeDef<'a>
impl<'a> PartialOrd for TypeDef<'a>
impl<'a> Eq for TypeDef<'a>
impl<'a> StructuralPartialEq for TypeDef<'a>
Auto Trait Implementations§
impl<'a> Freeze for TypeDef<'a>
impl<'a> RefUnwindSafe for TypeDef<'a>
impl<'a> Send for TypeDef<'a>
impl<'a> Sync for TypeDef<'a>
impl<'a> Unpin for TypeDef<'a>
impl<'a> UnsafeUnpin for TypeDef<'a>
impl<'a> UnwindSafe for TypeDef<'a>
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