pub struct TyGenerics<'tcx> {
pub parent: Option<DefId>,
pub parent_count: usize,
pub params: Vec<GenericParamDef<'tcx>>,
}Expand description
Reflects [ty::Generics]
Fields§
§parent: Option<DefId>§parent_count: usize§params: Vec<GenericParamDef<'tcx>>Trait Implementations§
Source§impl<'tcx> Clone for TyGenerics<'tcx>
impl<'tcx> Clone for TyGenerics<'tcx>
Source§fn clone(&self) -> TyGenerics<'tcx>
fn clone(&self) -> TyGenerics<'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 moreSource§impl<'tcx> Debug for TyGenerics<'tcx>
impl<'tcx> Debug for TyGenerics<'tcx>
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, TyGenerics<'tcx>> for Generics
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, TyGenerics<'tcx>> for Generics
fn sinto(&self, state: &S) -> TyGenerics<'tcx>
Auto Trait Implementations§
impl<'tcx> DynSend for TyGenerics<'tcx>
impl<'tcx> DynSync for TyGenerics<'tcx>
impl<'tcx> Freeze for TyGenerics<'tcx>
impl<'tcx> RefUnwindSafe for TyGenerics<'tcx>
impl<'tcx> Send for TyGenerics<'tcx>
impl<'tcx> Sync for TyGenerics<'tcx>
impl<'tcx> Unpin for TyGenerics<'tcx>
impl<'tcx> UnsafeUnpin for TyGenerics<'tcx>
impl<'tcx> UnwindSafe for TyGenerics<'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