Struct ra_ap_hir_def::item_tree::Trait [−][src]
pub struct Trait { pub name: Name, pub visibility: RawVisibilityId, pub generic_params: Interned<GenericParams>, pub is_auto: bool, pub is_unsafe: bool, pub items: Box<[AssocItem]>, pub ast_id: FileAstId<Trait>, }
Fields
name: Name
visibility: RawVisibilityId
generic_params: Interned<GenericParams>
is_auto: bool
is_unsafe: bool
items: Box<[AssocItem]>
ast_id: FileAstId<Trait>
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 Trait
impl UnwindSafe for Trait
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.