pub struct PatternMapping {
pub node_type: &'static str,
pub babel_check: &'static str,
pub swc_pattern: &'static str,
pub swc_binding: &'static str,
}Expand description
Pattern for matching AST node types
Fields§
§node_type: &'static strReluxScript node type
babel_check: &'static strBabel pattern (using t.isXxx)
swc_pattern: &'static strSWC pattern (using matches! or if let)
swc_binding: &'static strSWC binding variable (what gets bound in the pattern)
Trait Implementations§
Source§impl Clone for PatternMapping
impl Clone for PatternMapping
Source§fn clone(&self) -> PatternMapping
fn clone(&self) -> PatternMapping
Returns a duplicate of the value. Read more
1.0.0 · 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 PatternMapping
impl RefUnwindSafe for PatternMapping
impl Send for PatternMapping
impl Sync for PatternMapping
impl Unpin for PatternMapping
impl UnwindSafe for PatternMapping
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