pub enum PatternKind<F, X> {
Cons(F, Arc<Vec<Pattern<F, X>>>),
Var(X),
}Expand description
A pattern.
Variants§
Trait Implementations§
Source§impl<F, X> From<PatternKind<F, X>> for Pattern<F, X>
impl<F, X> From<PatternKind<F, X>> for Pattern<F, X>
Source§fn from(kind: PatternKind<F, X>) -> Pattern<F, X>
fn from(kind: PatternKind<F, X>) -> Pattern<F, X>
Converts to this type from the input type.
Auto Trait Implementations§
impl<F, X> Freeze for PatternKind<F, X>
impl<F, X> RefUnwindSafe for PatternKind<F, X>where
F: RefUnwindSafe,
X: RefUnwindSafe,
impl<F, X> Send for PatternKind<F, X>
impl<F, X> Sync for PatternKind<F, X>
impl<F, X> Unpin for PatternKind<F, X>
impl<F, X> UnwindSafe for PatternKind<F, X>
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