Struct rustc_borrowck::ty::AssocItem [−][src]
pub struct AssocItem {
pub def_id: DefId,
pub ident: Ident,
pub kind: AssocKind,
pub vis: Visibility,
pub defaultness: Defaultness,
pub container: AssocItemContainer,
pub fn_has_self_parameter: bool,
}Fields
def_id: DefIdident: Identkind: AssocKindvis: Visibilitydefaultness: Defaultnesscontainer: AssocItemContainerfn_has_self_parameter: boolWhether this is a method with an explicit self as its first parameter, allowing method calls.
Auto Trait Implementations
impl RefUnwindSafe for AssocItem
impl UnwindSafe for AssocItem
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 44 bytes