Struct ra_ap_hir_def::item_tree::Enum [−][src]
pub struct Enum { pub name: Name, pub visibility: RawVisibilityId, pub generic_params: Interned<GenericParams>, pub variants: IdRange<Variant>, pub ast_id: FileAstId<Enum>, }
Fields
name: Name
visibility: RawVisibilityId
generic_params: Interned<GenericParams>
variants: IdRange<Variant>
ast_id: FileAstId<Enum>
Trait Implementations
Looks up an instance of Self
in an item tree.
Downcasts a ModItem
to a FileItemTreeId
specific to this type.
Upcasts a FileItemTreeId
to a generic ModItem
.
Auto Trait Implementations
impl RefUnwindSafe for Enum
impl UnwindSafe for Enum
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.