pub enum AltKind {
Tagged,
Untagged,
Mixed,
}Expand description
Whether an alternation uses tagged or untagged branches.
Variants§
Tagged
All branches have labels: [A: expr1 B: expr2]
Untagged
No branches have labels: [expr1 expr2]
Mixed
Mixed tagged and untagged branches (invalid)
Trait Implementations§
impl Copy for AltKind
impl Eq for AltKind
impl StructuralPartialEq for AltKind
Auto Trait Implementations§
impl Freeze for AltKind
impl RefUnwindSafe for AltKind
impl Send for AltKind
impl Sync for AltKind
impl Unpin for AltKind
impl UnwindSafe for AltKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.