pub struct VariantCase<'a> {
pub span: Span,
pub id: Option<Id<'a>>,
pub name: &'a str,
pub ty: Option<ComponentValType<'a>>,
pub refines: Option<Refinement<'a>>,
}Available on crate feature
component-model only.Expand description
A case of a variant type.
Fields§
§span: SpanWhere this case was defined
id: Option<Id<'a>>An optional identifier to refer to this case by as part of name resolution.
name: &'a strThe name of the case.
ty: Option<ComponentValType<'a>>The optional type of the case.
refines: Option<Refinement<'a>>The optional refinement.
Trait Implementations§
Source§impl<'a> Debug for VariantCase<'a>
impl<'a> Debug for VariantCase<'a>
Auto Trait Implementations§
impl<'a> Freeze for VariantCase<'a>
impl<'a> RefUnwindSafe for VariantCase<'a>
impl<'a> Send for VariantCase<'a>
impl<'a> Sync for VariantCase<'a>
impl<'a> Unpin for VariantCase<'a>
impl<'a> UnwindSafe for VariantCase<'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