Struct rustc_typeck::hir::map::DefPath [] [src]

pub struct DefPath {
    pub data: Vec<DisambiguatedDefPathData>,
    pub krate: u32,
}
Unstable (rustc_private)

Fields

data: Vec<DisambiguatedDefPathData>
Unstable (rustc_private)

the path leading from the crate root to the item

krate: u32
Unstable (rustc_private)

what krate root is this path relative to?

Methods

impl DefPath

fn is_local(&self) -> bool

fn make<FN>(start_krate: u32, start_index: DefIndex, get_key: FN) -> DefPath where FN: FnMut(DefIndex) -> DefKey

Trait Implementations

Derived Implementations

impl Decodable for DefPath

fn decode<__D>(__arg_0: &mut __D) -> Result<DefPath, __D::Error> where __D: Decoder

impl Encodable for DefPath

fn encode<__S>(&self, __arg_0: &mut __S) -> Result<(), __S::Error> where __S: Encoder

impl Hash for DefPath

fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Eq for DefPath

impl PartialEq<DefPath> for DefPath

fn eq(&self, __arg_0: &DefPath) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &DefPath) -> bool

This method tests for !=.

impl Debug for DefPath

fn fmt(&self, __arg_0: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Clone for DefPath

fn clone(&self) -> DefPath

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more