Struct wast::component::VariantCase
source · 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>>,
}
Expand description
A case of a variant type.
Fields§
§span: Span
Where this case
was defined
id: Option<Id<'a>>
An optional identifier to refer to this case by as part of name resolution.
name: &'a str
The 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> 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