Struct hir_def::data::ExternCrateDeclData
source · pub struct ExternCrateDeclData {
pub name: Name,
pub alias: Option<ImportAlias>,
pub visibility: RawVisibility,
pub crate_id: Option<CrateId>,
}
Fields§
§name: Name
§alias: Option<ImportAlias>
§visibility: RawVisibility
§crate_id: Option<CrateId>
Trait Implementations§
source§impl Clone for ExternCrateDeclData
impl Clone for ExternCrateDeclData
source§fn clone(&self) -> ExternCrateDeclData
fn clone(&self) -> ExternCrateDeclData
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 ExternCrateDeclData
impl Debug for ExternCrateDeclData
source§impl PartialEq for ExternCrateDeclData
impl PartialEq for ExternCrateDeclData
source§fn eq(&self, other: &ExternCrateDeclData) -> bool
fn eq(&self, other: &ExternCrateDeclData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ExternCrateDeclData
impl StructuralPartialEq for ExternCrateDeclData
Auto Trait Implementations§
impl Freeze for ExternCrateDeclData
impl RefUnwindSafe for ExternCrateDeclData
impl Send for ExternCrateDeclData
impl Sync for ExternCrateDeclData
impl Unpin for ExternCrateDeclData
impl UnwindSafe for ExternCrateDeclData
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.