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

pub struct TraitRef {
    pub path: Path,
    pub ref_id: NodeId,
}

TraitRef's appear in impls. resolve maps each TraitRef's ref_id to its defining trait; that's all that the ref_id is for. The impl_id maps to the "self type" of this impl. If this impl is an ItemImpl, the impl_id is redundant (it could be the same as the impl's node id).

Fields

path
ref_id

Trait Implementations

Derived Implementations

impl Debug for TraitRef

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

impl Hash for TraitRef

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

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

impl Decodable for TraitRef

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

impl Encodable for TraitRef

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

impl Eq for TraitRef

fn assert_receiver_is_total_eq(&self)

impl PartialEq for TraitRef

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

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

impl Clone for TraitRef

fn clone(&self) -> TraitRef

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