Struct rustc::ty::AssociatedItem [−][src]
pub struct AssociatedItem {
pub def_id: DefId,
pub name: Name,
pub kind: AssociatedKind,
pub vis: Visibility,
pub defaultness: Defaultness,
pub container: AssociatedItemContainer,
pub method_has_self_argument: bool,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fields
def_id: DefId
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
name: Name
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
kind: AssociatedKind
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
vis: Visibility
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
defaultness: Defaultness
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
container: AssociatedItemContainer
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
method_has_self_argument: bool
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Whether this is a method with an explicit self as its first argument, allowing method calls.
Methods
impl AssociatedItem[src]
impl AssociatedItempub fn def(&self) -> Def[src]
pub fn def(&self) -> Def🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn relevant_for_never<'tcx>(&self) -> bool[src]
pub fn relevant_for_never<'tcx>(&self) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Tests whether the associated item admits a non-trivial implementation for !
pub fn signature<'a, 'tcx>(&self, tcx: &TyCtxt<'a, 'tcx, 'tcx>) -> String[src]
pub fn signature<'a, 'tcx>(&self, tcx: &TyCtxt<'a, 'tcx, 'tcx>) -> String🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for AssociatedItem[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for AssociatedItemfn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Copy for AssociatedItem[src]
impl Copy for AssociatedItemimpl Clone for AssociatedItem[src]
impl Clone for AssociatedItemfn clone(&self) -> AssociatedItem[src]
fn clone(&self) -> AssociatedItemReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for AssociatedItem[src]
impl Debug for AssociatedItemfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for AssociatedItem[src]
impl PartialEq for AssociatedItemfn eq(&self, other: &AssociatedItem) -> bool[src]
fn eq(&self, other: &AssociatedItem) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &AssociatedItem) -> bool[src]
fn ne(&self, other: &AssociatedItem) -> boolThis method tests for !=.
impl Eq for AssociatedItem[src]
impl Eq for AssociatedItemfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)Auto Trait Implementations
impl !Send for AssociatedItem
impl !Send for AssociatedItemimpl !Sync for AssociatedItem
impl !Sync for AssociatedItem