pub struct MirEnumDecl {
pub name: String,
pub type_params: Vec<String>,
pub variants: Vec<MirEnumVariant>,
}Expand description
Enum declaration retained for backend aggregate emission.
Fields§
§name: StringUser-visible enum name.
type_params: Vec<String>Generic type parameters declared on the enum.
variants: Vec<MirEnumVariant>Variants declared on the enum.
Trait Implementations§
Source§impl Clone for MirEnumDecl
impl Clone for MirEnumDecl
Source§fn clone(&self) -> MirEnumDecl
fn clone(&self) -> MirEnumDecl
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 moreAuto Trait Implementations§
impl Freeze for MirEnumDecl
impl RefUnwindSafe for MirEnumDecl
impl Send for MirEnumDecl
impl Sync for MirEnumDecl
impl Unpin for MirEnumDecl
impl UnwindSafe for MirEnumDecl
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