Struct hir_def::item_tree::ExternCrate
source · 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§
source§impl Clone for ExternCrate
impl Clone for ExternCrate
source§fn clone(&self) -> ExternCrate
fn clone(&self) -> ExternCrate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExternCrate
impl Debug for ExternCrate
source§impl ItemTreeNode for ExternCrate
impl ItemTreeNode for ExternCrate
source§impl PartialEq for ExternCrate
impl PartialEq for ExternCrate
source§fn eq(&self, other: &ExternCrate) -> bool
fn eq(&self, other: &ExternCrate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ExternCrate
impl StructuralPartialEq for ExternCrate
Auto Trait Implementations§
impl Freeze for ExternCrate
impl RefUnwindSafe for ExternCrate
impl Send for ExternCrate
impl Sync for ExternCrate
impl Unpin for ExternCrate
impl UnwindSafe for ExternCrate
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.