pub struct Op {Show 23 fields
pub name: String,
pub src: String,
pub left: i64,
pub right: i64,
pub use_data: Value,
pub prefix: bool,
pub suffix: bool,
pub infix: bool,
pub ternary: bool,
pub paren: bool,
pub terms: usize,
pub tkn: String,
pub tin: Tin,
pub osrc: String,
pub csrc: String,
pub otkn: String,
pub otin: Tin,
pub ctkn: String,
pub ctin: Tin,
pub preval: PrevalDef,
pub ternary_index: Option<usize>,
pub key: bool,
pub dynamic: bool,
}Expand description
The full operator description carried by a parsed expression and handed to an evaluator.
Fields§
§name: String§src: String§left: i64§right: i64§use_data: Value§prefix: bool§suffix: bool§infix: bool§ternary: bool§paren: bool§terms: usize§tkn: String§tin: Tin§osrc: String§csrc: String§otkn: String§otin: Tin§ctkn: String§ctin: Tin§preval: PrevalDef§ternary_index: Option<usize>Which of a ternary’s two source strings this operator is, as the
canonical use.ternary.opI. None for every other operator.
key: boolA key operator, recognised by a map’s shape when a tree is folded:
see OpDef::key() and fold.
dynamic: boolA key operator a fold reports and never evaluates: see
OpDef::dynamic.
Trait Implementations§
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Forget for Op
impl Freeze for Op
impl Move for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnsafeUnpin for Op
impl UnwindSafe for Op
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