pub enum VariantShape {
Unit,
Tuple,
Named,
}Expand description
A variant’s fields, as a pattern has to spell them.
Variants§
Unit
Variant — nothing to bind.
Tuple
Variant(a, b) — bound by position.
Named
Variant { a, b } — bound by name.
Trait Implementations§
Source§impl Clone for VariantShape
impl Clone for VariantShape
impl Copy for VariantShape
Source§impl Debug for VariantShape
impl Debug for VariantShape
impl Eq for VariantShape
Source§impl PartialEq for VariantShape
impl PartialEq for VariantShape
impl StructuralPartialEq for VariantShape
Auto Trait Implementations§
impl Freeze for VariantShape
impl RefUnwindSafe for VariantShape
impl Send for VariantShape
impl Sync for VariantShape
impl Unpin for VariantShape
impl UnsafeUnpin for VariantShape
impl UnwindSafe for VariantShape
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