pub struct TermPattern {
pub span: NodeSpan,
pub kind: TermPatternKind,
}Expand description
Simplified pattern used inside a Term, and where it was written.
Same shape as the parser and canonical ASTs — a span beside a kind — so a reader
matches on &p.kind.
Fields§
§span: NodeSpan§kind: TermPatternKindTrait Implementations§
Source§impl Clone for TermPattern
impl Clone for TermPattern
Source§fn clone(&self) -> TermPattern
fn clone(&self) -> TermPattern
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 moreAuto Trait Implementations§
impl Freeze for TermPattern
impl RefUnwindSafe for TermPattern
impl Send for TermPattern
impl Sync for TermPattern
impl Unpin for TermPattern
impl UnsafeUnpin for TermPattern
impl UnwindSafe for TermPattern
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