Struct syntax::ast::DefIdUnstable [-] [+] [src]

pub struct DefId {
    pub krate: CrateNum,
    pub node: NodeId,
}

Fields

krate
node

Methods

impl DefId

fn local_id(&self) -> NodeId

Read the node id, asserting that this def-id is krate-local.

Trait Implementations

Derived Implementations

impl Copy for DefId

impl Debug for DefId

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

impl Hash for DefId

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

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

impl Decodable for DefId

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

impl Encodable for DefId

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

impl PartialEq for DefId

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

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

impl PartialOrd for DefId

fn partial_cmp(&self, __arg_0: &DefId) -> Option<Ordering>

fn lt(&self, __arg_0: &DefId) -> bool

fn le(&self, __arg_0: &DefId) -> bool

fn gt(&self, __arg_0: &DefId) -> bool

fn ge(&self, __arg_0: &DefId) -> bool

impl Ord for DefId

fn cmp(&self, __arg_0: &DefId) -> Ordering

impl Eq for DefId

fn assert_receiver_is_total_eq(&self)

impl Clone for DefId

fn clone(&self) -> DefId

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