pub struct IrStructFieldView<'view, 'a> { /* private fields */ }Expand description
A graph-aware view of an IrStructField.
Implementations§
Source§impl<'view, 'a> IrStructFieldView<'view, 'a>
impl<'view, 'a> IrStructFieldView<'view, 'a>
pub fn name(&self) -> IrStructFieldName<'a>
Sourcepub fn ty(&self) -> IrTypeView<'a>
pub fn ty(&self) -> IrTypeView<'a>
Returns a view of the inner type that this type wraps.
pub fn required(&self) -> bool
pub fn description(&self) -> Option<&'a str>
pub fn discriminator(&self) -> bool
pub fn flattened(&self) -> bool
Sourcepub fn needs_indirection(&self) -> bool
pub fn needs_indirection(&self) -> bool
Returns true if this field needs indirection to break a cycle.
Trait Implementations§
Auto Trait Implementations§
impl<'view, 'a> Freeze for IrStructFieldView<'view, 'a>
impl<'view, 'a> !RefUnwindSafe for IrStructFieldView<'view, 'a>
impl<'view, 'a> Send for IrStructFieldView<'view, 'a>
impl<'view, 'a> Sync for IrStructFieldView<'view, 'a>
impl<'view, 'a> Unpin for IrStructFieldView<'view, 'a>
impl<'view, 'a> !UnwindSafe for IrStructFieldView<'view, 'a>
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