pub(crate) struct SingleGenerics<'db> {
def: GenericDefId,
preceding_params_len: u32,
params: &'db GenericParams,
store: &'db ExpressionStore,
}Fields§
§def: GenericDefId§preceding_params_len: u32§params: &'db GenericParams§store: &'db ExpressionStoreImplementations§
Source§impl<'db> SingleGenerics<'db>
impl<'db> SingleGenerics<'db>
pub(crate) fn def(&self) -> GenericDefId
pub(crate) fn store(&self) -> &'db ExpressionStore
pub(crate) fn where_predicates(&self) -> impl Iterator<Item = &WherePredicate>
pub(crate) fn has_no_params(&self) -> bool
pub(crate) fn len_lifetimes(&self) -> usize
pub(crate) fn len(&self, consider_late_bound: bool) -> usize
fn iter_lifetimes( &self, ) -> impl Iterator<Item = (LifetimeParamId, &'db LifetimeParamData)>
fn iter_late_bound_lifetimes( &self, consider_late_bound: bool, ) -> impl Iterator<Item = (LifetimeParamId, &'db LifetimeParamData)>
pub(crate) fn iter_type_or_consts( &self, ) -> impl Iterator<Item = (TypeOrConstParamId, &'db TypeOrConstParamData)>
fn iter_type_or_consts_as_generic( &self, ) -> impl Iterator<Item = (GenericParamId, GenericParamDataRef<'db>)>
fn trait_self_and_others( &self, ) -> (Option<(GenericParamId, GenericParamDataRef<'db>)>, impl Iterator<Item = (GenericParamId, GenericParamDataRef<'db>)>)
pub(crate) fn iter( &self, consider_late_bound: bool, ) -> impl Iterator<Item = (GenericParamId, GenericParamDataRef<'db>)>
pub(crate) fn iter_with_idx( &self, ) -> impl Iterator<Item = (u32, GenericParamId, GenericParamDataRef<'db>)>
pub(crate) fn iter_id( &self, consider_late_bound: bool, ) -> impl Iterator<Item = GenericParamId>
pub(crate) fn iter_late_bound( &self, ) -> impl Iterator<Item = (GenericParamId, GenericParamDataRef<'db>)>
Trait Implementations§
Auto Trait Implementations§
impl<'db> Freeze for SingleGenerics<'db>
impl<'db> !RefUnwindSafe for SingleGenerics<'db>
impl<'db> Send for SingleGenerics<'db>
impl<'db> Sync for SingleGenerics<'db>
impl<'db> Unpin for SingleGenerics<'db>
impl<'db> UnsafeUnpin for SingleGenerics<'db>
impl<'db> !UnwindSafe for SingleGenerics<'db>
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
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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