pub struct ImplAssocItem<'tcx> {
pub name: Option<Symbol>,
pub decl_def_id: DefId,
pub value: Option<TraitItemBinder<'tcx, ImplAssocItemValue<'tcx>>>,
}Expand description
An associated item in a trait impl. This can be an item provided by the trait impl, or an item that reuses the trait decl default value.
Fields§
§name: Option<Symbol>This is None for RPTITs.
decl_def_id: DefIdThe definition of the item from the trait declaration. This is an AssocTy, AssocFn or
AssocConst.
value: Option<TraitItemBinder<'tcx, ImplAssocItemValue<'tcx>>>The value of the implemented item, if any.
Implementations§
Source§impl<'tcx> ImplAssocItem<'tcx>
impl<'tcx> ImplAssocItem<'tcx>
Trait Implementations§
Source§impl<'tcx> Clone for ImplAssocItem<'tcx>
impl<'tcx> Clone for ImplAssocItem<'tcx>
Source§fn clone(&self) -> ImplAssocItem<'tcx>
fn clone(&self) -> ImplAssocItem<'tcx>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'tcx> DynSend for ImplAssocItem<'tcx>
impl<'tcx> DynSync for ImplAssocItem<'tcx>
impl<'tcx> Freeze for ImplAssocItem<'tcx>
impl<'tcx> RefUnwindSafe for ImplAssocItem<'tcx>
impl<'tcx> Send for ImplAssocItem<'tcx>
impl<'tcx> Sync for ImplAssocItem<'tcx>
impl<'tcx> Unpin for ImplAssocItem<'tcx>
impl<'tcx> UnsafeUnpin for ImplAssocItem<'tcx>
impl<'tcx> UnwindSafe for ImplAssocItem<'tcx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more