pub struct InherentImpl<'tcx> {
def_id: DefId,
args: Option<GenericArgsRef<'tcx>>,
param_env: ParamEnv<'tcx>,
ty: Ty<'tcx>,
items: OnceCell<Vec<AssocItem<'tcx>>>,
}Fields§
§def_id: DefId§args: Option<GenericArgsRef<'tcx>>§param_env: ParamEnv<'tcx>§ty: Ty<'tcx>The type to which this block applies.
items: OnceCell<Vec<AssocItem<'tcx>>>Computed on demand, see InherentImpl::items.
Implementations§
Trait Implementations§
Source§impl<'tcx> Clone for InherentImpl<'tcx>
impl<'tcx> Clone for InherentImpl<'tcx>
Source§fn clone(&self) -> InherentImpl<'tcx>
fn clone(&self) -> InherentImpl<'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> !DynSync for InherentImpl<'tcx>
impl<'tcx> !Freeze for InherentImpl<'tcx>
impl<'tcx> !RefUnwindSafe for InherentImpl<'tcx>
impl<'tcx> !Sync for InherentImpl<'tcx>
impl<'tcx> !UnwindSafe for InherentImpl<'tcx>
impl<'tcx> DynSend for InherentImpl<'tcx>
impl<'tcx> Send for InherentImpl<'tcx>
impl<'tcx> Unpin for InherentImpl<'tcx>
impl<'tcx> UnsafeUnpin for InherentImpl<'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