pub struct Selected<'m> {
pub index: u8,
pub variant: &'m Variant,
}Expand description
The outcome of selection: which variant, and where it sat. The index is
what Event.variant records (doc 02 — manifest-referencing, so
I-1-compatible) and what the authoring feedback loop keys on (06 §6).
Fields§
§index: u8Position in the manifest’s declaration order.
variant: &'m VariantThe winning variant.
Trait Implementations§
impl<'m> Copy for Selected<'m>
impl<'m> Eq for Selected<'m>
impl<'m> StructuralPartialEq for Selected<'m>
Auto Trait Implementations§
impl<'m> Freeze for Selected<'m>
impl<'m> RefUnwindSafe for Selected<'m>
impl<'m> Send for Selected<'m>
impl<'m> Sync for Selected<'m>
impl<'m> Unpin for Selected<'m>
impl<'m> UnsafeUnpin for Selected<'m>
impl<'m> UnwindSafe for Selected<'m>
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