Struct ra_ap_hir_def::item_tree::ExternCrate [−][src]
pub struct ExternCrate { pub name: Name, pub alias: Option<ImportAlias>, pub visibility: RawVisibilityId, pub ast_id: FileAstId<ExternCrate>, }
Fields
name: Name
alias: Option<ImportAlias>
visibility: RawVisibilityId
ast_id: FileAstId<ExternCrate>
Trait Implementations
type Source = ExternCrate
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
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ExternCrate
impl Send for ExternCrate
impl Sync for ExternCrate
impl Unpin for ExternCrate
impl UnwindSafe for ExternCrate
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.