Struct HirEnumDecl
pub struct HirEnumDecl {
pub name: String,
pub type_params: Vec<String>,
pub variants: Vec<VariantType>,
}Expand description
Runtime enum declaration retained in HIR.
Fields§
§name: StringUser-visible item name.
type_params: Vec<String>Generic type parameter names declared on the item.
variants: Vec<VariantType>Enum variants declared on the item.
Trait Implementations§
§impl Clone for HirEnumDecl
impl Clone for HirEnumDecl
§fn clone(&self) -> HirEnumDecl
fn clone(&self) -> HirEnumDecl
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 HirEnumDecl
impl RefUnwindSafe for HirEnumDecl
impl Send for HirEnumDecl
impl Sync for HirEnumDecl
impl Unpin for HirEnumDecl
impl UnwindSafe for HirEnumDecl
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