Struct flux_middle::fhir::Generics
source · pub struct Generics<'fhir> {
pub params: &'fhir [GenericParam<'fhir>],
pub refinement_params: &'fhir [RefineParam<'fhir>],
pub predicates: &'fhir [WhereBoundPredicate<'fhir>],
}
Fields§
§params: &'fhir [GenericParam<'fhir>]
§refinement_params: &'fhir [RefineParam<'fhir>]
§predicates: &'fhir [WhereBoundPredicate<'fhir>]
Implementations§
source§impl<'fhir> Generics<'fhir>
impl<'fhir> Generics<'fhir>
pub fn get_param(&self, def_id: LocalDefId) -> &'fhir GenericParam<'fhir>
Trait Implementations§
impl<'fhir> Copy for Generics<'fhir>
Auto Trait Implementations§
impl<'fhir> Freeze for Generics<'fhir>
impl<'fhir> RefUnwindSafe for Generics<'fhir>
impl<'fhir> Send for Generics<'fhir>
impl<'fhir> Sync for Generics<'fhir>
impl<'fhir> Unpin for Generics<'fhir>
impl<'fhir> UnwindSafe for Generics<'fhir>
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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