pub enum CompiledPostfixOp {
Simple {
pattern: PatternInfo,
precedence: u8,
mapping_idx: usize,
},
Call {
open_lit: String,
close_lit: String,
sep_lit: String,
arg_rule: Option<RuleId>,
precedence: u8,
mapping_idx: usize,
},
Index {
open_lit: String,
close_lit: String,
precedence: u8,
mapping_idx: usize,
},
Member {
pattern: PatternInfo,
precedence: u8,
mapping_idx: usize,
},
Rule {
rule_id: RuleId,
precedence: u8,
mapping_idx: usize,
},
}Expand description
Compiled postfix operator
Variants§
Simple
Simple postfix (++, –)
Call
Call expression: callee(args)
Fields
Index
Index expression: obj[index]
Member
Member access: obj.prop
Rule
Rule-based postfix
Trait Implementations§
Source§impl Clone for CompiledPostfixOp
impl Clone for CompiledPostfixOp
Source§fn clone(&self) -> CompiledPostfixOp
fn clone(&self) -> CompiledPostfixOp
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 CompiledPostfixOp
impl RefUnwindSafe for CompiledPostfixOp
impl Send for CompiledPostfixOp
impl Sync for CompiledPostfixOp
impl Unpin for CompiledPostfixOp
impl UnsafeUnpin for CompiledPostfixOp
impl UnwindSafe for CompiledPostfixOp
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