Struct ra_ap_hir_def::item_tree::Static
source · pub struct Static {
pub name: Name,
pub visibility: RawVisibilityId,
pub mutable: bool,
pub type_ref: Interned<TypeRef>,
pub ast_id: FileAstId<Static>,
}
Fields§
§name: Name
§visibility: RawVisibilityId
§mutable: bool
§type_ref: Interned<TypeRef>
§ast_id: FileAstId<Static>
Trait Implementations§
source§impl ItemTreeNode for Static
impl ItemTreeNode for Static
type Source = Static
fn ast_id(&self) -> FileAstId<Self::Source>
source§fn lookup(tree: &ItemTree, index: Idx<Self>) -> &Self
fn lookup(tree: &ItemTree, index: Idx<Self>) -> &Self
Looks up an instance of
Self
in an item tree.source§fn id_from_mod_item(mod_item: ModItem) -> Option<FileItemTreeId<Self>>
fn id_from_mod_item(mod_item: ModItem) -> Option<FileItemTreeId<Self>>
Downcasts a
ModItem
to a FileItemTreeId
specific to this type.source§fn id_to_mod_item(id: FileItemTreeId<Self>) -> ModItem
fn id_to_mod_item(id: FileItemTreeId<Self>) -> ModItem
Upcasts a
FileItemTreeId
to a generic ModItem
.source§impl PartialEq<Static> for Static
impl PartialEq<Static> for Static
impl Eq for Static
impl StructuralEq for Static
impl StructuralPartialEq for Static
Auto Trait Implementations§
impl RefUnwindSafe for Static
impl Send for Static
impl Sync for Static
impl Unpin for Static
impl UnwindSafe for Static
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.