Struct ra_ap_hir_def::item_tree::Const [−][src]
pub struct Const { pub name: Option<Name>, pub visibility: RawVisibilityId, pub type_ref: Interned<TypeRef>, pub ast_id: FileAstId<Const>, }
Fields
name: Option<Name>
const _: () = ();
visibility: RawVisibilityId
type_ref: Interned<TypeRef>
ast_id: FileAstId<Const>
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 Const
impl UnwindSafe for Const
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.