Struct rustc::hir::ImplItemRef
[−]
[src]
pub struct ImplItemRef { pub id: ImplItemId, pub name: Name, pub kind: AssociatedItemKind, pub span: Span, pub vis: Visibility, pub defaultness: Defaultness, }
rustc_private
)A reference from an impl to one of its associated items. This contains the item's id, naturally, but also the item's name and some other high-level details (like whether it is an associated type or method, and whether it is public). This allows other passes to find the impl they want without loading the id (which means fewer edges in the incremental compilation graph).
Fields
id: ImplItemId
rustc_private
)name: Name
rustc_private
)kind: AssociatedItemKind
rustc_private
)span: Span
rustc_private
)vis: Visibility
rustc_private
)defaultness: Defaultness
rustc_private
)Trait Implementations
impl Clone for ImplItemRef
[src]
fn clone(&self) -> ImplItemRef
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
impl PartialEq for ImplItemRef
[src]
fn eq(&self, __arg_0: &ImplItemRef) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ImplItemRef) -> bool
This method tests for !=
.
impl Eq for ImplItemRef
[src]
impl Encodable for ImplItemRef
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io
impl Decodable for ImplItemRef
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ImplItemRef, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io
impl Hash for ImplItemRef
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
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.