pub struct AssocConst<'tcx> {
param_env: ParamEnv<'tcx>,
associated_item: AssocItem<'tcx>,
ty: Ty<'tcx>,
}Expand description
Associated constant: trait MyTrait { const ASSOC: usize; }
Fields§
§param_env: ParamEnv<'tcx>§associated_item: AssocItem<'tcx>§ty: Ty<'tcx>Implementations§
Trait Implementations§
Source§impl<'tcx> Clone for AssocConst<'tcx>
impl<'tcx> Clone for AssocConst<'tcx>
Source§fn clone(&self) -> AssocConst<'tcx>
fn clone(&self) -> AssocConst<'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 AssocConst<'tcx>
impl<'tcx> DynSync for AssocConst<'tcx>
impl<'tcx> Freeze for AssocConst<'tcx>
impl<'tcx> RefUnwindSafe for AssocConst<'tcx>
impl<'tcx> Send for AssocConst<'tcx>
impl<'tcx> Sync for AssocConst<'tcx>
impl<'tcx> Unpin for AssocConst<'tcx>
impl<'tcx> UnsafeUnpin for AssocConst<'tcx>
impl<'tcx> UnwindSafe for AssocConst<'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