Struct ra_ap_hir_def::item_tree::Static [−][src]
pub struct Static { pub name: Name, pub visibility: RawVisibilityId, pub mutable: bool, pub is_extern: bool, pub type_ref: Interned<TypeRef>, pub ast_id: FileAstId<Static>, }
Fields
name: Name
visibility: RawVisibilityId
mutable: bool
is_extern: bool
Whether the static is in an extern
block.
type_ref: Interned<TypeRef>
ast_id: FileAstId<Static>
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 Static
impl UnwindSafe for Static
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.