Struct rustc_span::def_id::LocalModDefId
source · pub struct LocalModDefId(LocalDefId);
Tuple Fields§
§0: LocalDefId
Implementations§
source§impl LocalModDefId
impl LocalModDefId
pub const fn new_unchecked(def_id: LocalDefId) -> Self
pub fn to_def_id(self) -> DefId
pub fn to_local_def_id(self) -> LocalDefId
source§impl LocalModDefId
impl LocalModDefId
pub const CRATE_DEF_ID: Self = _
source§impl LocalModDefId
impl LocalModDefId
pub fn is_top_level_module(self) -> bool
Trait Implementations§
source§impl Clone for LocalModDefId
impl Clone for LocalModDefId
source§fn clone(&self) -> LocalModDefId
fn clone(&self) -> LocalModDefId
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 LocalModDefId
impl Debug for LocalModDefId
source§impl<__D: Decoder> Decodable<__D> for LocalModDefId
impl<__D: Decoder> Decodable<__D> for LocalModDefId
source§impl<__E: Encoder> Encodable<__E> for LocalModDefId
impl<__E: Encoder> Encodable<__E> for LocalModDefId
source§impl From<LocalModDefId> for DefId
impl From<LocalModDefId> for DefId
source§fn from(typed: LocalModDefId) -> Self
fn from(typed: LocalModDefId) -> Self
Converts to this type from the input type.
source§impl From<LocalModDefId> for LocalDefId
impl From<LocalModDefId> for LocalDefId
source§fn from(typed: LocalModDefId) -> Self
fn from(typed: LocalModDefId) -> Self
Converts to this type from the input type.
source§impl From<LocalModDefId> for ModDefId
impl From<LocalModDefId> for ModDefId
source§fn from(local: LocalModDefId) -> Self
fn from(local: LocalModDefId) -> Self
Converts to this type from the input type.
source§impl Hash for LocalModDefId
impl Hash for LocalModDefId
source§impl<__CTX> HashStable<__CTX> for LocalModDefIdwhere
__CTX: HashStableContext,
impl<__CTX> HashStable<__CTX> for LocalModDefIdwhere __CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
source§impl !Ord for LocalModDefId
impl !Ord for LocalModDefId
source§impl PartialEq<LocalModDefId> for LocalModDefId
impl PartialEq<LocalModDefId> for LocalModDefId
source§fn eq(&self, other: &LocalModDefId) -> bool
fn eq(&self, other: &LocalModDefId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl !PartialOrd<LocalModDefId> for LocalModDefId
impl !PartialOrd<LocalModDefId> for LocalModDefId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for LocalModDefId
impl Eq for LocalModDefId
impl StructuralEq for LocalModDefId
impl StructuralPartialEq for LocalModDefId
Auto Trait Implementations§
impl RefUnwindSafe for LocalModDefId
impl Send for LocalModDefId
impl Sync for LocalModDefId
impl Unpin for LocalModDefId
impl UnwindSafe for LocalModDefId
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes