pub struct UnionCase {
pub discriminators: Vec<UnionDiscriminator>,
pub member: StructMember,
}Expand description
<case> entry (Spec §7.3.3.4.6.1).
Fields§
§discriminators: Vec<UnionDiscriminator>Discriminator values for this case.
Multiple <caseDiscriminator> children possible.
member: StructMemberMember selected when the discriminator is active.
Trait Implementations§
impl Eq for UnionCase
impl StructuralPartialEq for UnionCase
Auto Trait Implementations§
impl Freeze for UnionCase
impl RefUnwindSafe for UnionCase
impl Send for UnionCase
impl Sync for UnionCase
impl Unpin for UnionCase
impl UnsafeUnpin for UnionCase
impl UnwindSafe for UnionCase
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