pub enum PatternElem {
Exact(Ternary),
Any,
Alt(Ternary, Ternary),
Not(Ternary),
}Expand description
A single element in a ternary pattern.
Variants§
Exact(Ternary)
Match exactly this ternary value.
Any
Match any ternary value (wildcard).
Alt(Ternary, Ternary)
Match either of two values.
Not(Ternary)
Match anything except this value.
Trait Implementations§
Source§impl Clone for PatternElem
impl Clone for PatternElem
Source§fn clone(&self) -> PatternElem
fn clone(&self) -> PatternElem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PatternElem
Source§impl Debug for PatternElem
impl Debug for PatternElem
impl Eq for PatternElem
Source§impl PartialEq for PatternElem
impl PartialEq for PatternElem
Source§fn eq(&self, other: &PatternElem) -> bool
fn eq(&self, other: &PatternElem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatternElem
Auto Trait Implementations§
impl Freeze for PatternElem
impl RefUnwindSafe for PatternElem
impl Send for PatternElem
impl Sync for PatternElem
impl Unpin for PatternElem
impl UnsafeUnpin for PatternElem
impl UnwindSafe for PatternElem
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