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

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

Fields

krate
node

Trait Implementations

Derived Implementations

impl Copy for DefId

impl Show for DefId

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

impl<__S: Writer + Hasher> Hash<__S> for DefId

fn hash(&self, __arg_0: &mut __S)

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)