pub struct Item<'fhir> {
pub owner_id: MaybeExternId<OwnerId>,
pub generics: Generics<'fhir>,
pub kind: ItemKind<'fhir>,
}
Fields§
§owner_id: MaybeExternId<OwnerId>
§generics: Generics<'fhir>
§kind: ItemKind<'fhir>
Implementations§
Source§impl<'fhir> Item<'fhir>
impl<'fhir> Item<'fhir>
pub fn expect_enum(&self) -> &EnumDef<'fhir>
pub fn expect_struct(&self) -> &StructDef<'fhir>
pub fn expect_type_alias(&self) -> &TyAlias<'fhir>
pub fn expect_impl(&self) -> &Impl<'fhir>
pub fn expect_trait(&self) -> &Trait<'fhir>
Trait Implementations§
Auto Trait Implementations§
impl<'fhir> Freeze for Item<'fhir>
impl<'fhir> RefUnwindSafe for Item<'fhir>
impl<'fhir> Send for Item<'fhir>
impl<'fhir> Sync for Item<'fhir>
impl<'fhir> Unpin for Item<'fhir>
impl<'fhir> UnwindSafe for Item<'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> 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