pub struct CompiledPrattDef {
pub operand: Option<CombRef>,
pub prefix_ops: Vec<CompiledPrefixOp>,
pub infix_ops: Vec<CompiledInfixOp>,
pub postfix_ops: Vec<CompiledPostfixOp>,
pub ternary: Option<CompiledTernaryOp>,
pub has_infix_with_leading: bool,
pub has_prefix_with_leading: bool,
}Expand description
Compiled Pratt expression parser definition
Fields§
§operand: Option<CombRef>Reference to the operand combinator
prefix_ops: Vec<CompiledPrefixOp>Compiled prefix operators
infix_ops: Vec<CompiledInfixOp>Compiled infix operators
postfix_ops: Vec<CompiledPostfixOp>Compiled postfix operators
ternary: Option<CompiledTernaryOp>Compiled ternary operator (if any)
has_infix_with_leading: boolWhether any infix operator has a leading rule
has_prefix_with_leading: boolWhether any prefix operator has a leading rule
Trait Implementations§
Source§impl Clone for CompiledPrattDef
impl Clone for CompiledPrattDef
Source§fn clone(&self) -> CompiledPrattDef
fn clone(&self) -> CompiledPrattDef
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 CompiledPrattDef
impl RefUnwindSafe for CompiledPrattDef
impl Send for CompiledPrattDef
impl Sync for CompiledPrattDef
impl Unpin for CompiledPrattDef
impl UnsafeUnpin for CompiledPrattDef
impl UnwindSafe for CompiledPrattDef
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