[−][src]Struct rustc_hir::def_id::DefIndex
A DefIndex is an index into the hir-map for a crate, identifying a particular definition. It should really be considered an interned shorthand for a particular DefPath.
Fields
private: u32Implementations
impl DefIndex[src]
pub const MAX_AS_U32: u32[src]
pub const MAX: DefIndex[src]
pub fn from_usize(value: usize) -> DefIndex[src]
pub fn from_u32(value: u32) -> DefIndex[src]
pub unsafe fn from_u32_unchecked(value: u32) -> DefIndex[src]
pub fn index(self) -> usize[src]
Extracts the value of this index as an integer.
pub fn as_u32(self) -> u32[src]
Extracts the value of this index as a u32.
pub fn as_usize(self) -> usize[src]
Extracts the value of this index as a usize.
Trait Implementations
impl Add<usize> for DefIndex[src]
type Output = DefIndex
The resulting type after applying the + operator.
fn add(self, other: usize) -> DefIndex[src]
impl Clone for DefIndex[src]
impl Copy for DefIndex[src]
impl Debug for DefIndex[src]
impl Eq for DefIndex[src]
impl From<u32> for DefIndex[src]
impl From<usize> for DefIndex[src]
impl Hash for DefIndex[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, [src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for DefIndex[src]
fn cmp(&self, other: &DefIndex) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<DefIndex> for DefIndex[src]
impl PartialOrd<DefIndex> for DefIndex[src]
Auto Trait Implementations
impl RefUnwindSafe for DefIndex
impl Send for DefIndex
impl Sync for DefIndex
impl Unpin for DefIndex
impl UnwindSafe for DefIndex
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,