Struct cranelift_isle::ast::Variant
source · pub struct Variant {
pub name: Ident,
pub fields: Vec<Field>,
pub pos: Pos,
}
Expand description
One variant of an enum type.
Fields§
§name: Ident
§fields: Vec<Field>
§pos: Pos
Trait Implementations§
source§impl PartialEq<Variant> for Variant
impl PartialEq<Variant> for Variant
impl Eq for Variant
impl StructuralEq for Variant
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnwindSafe for Variant
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