pub struct Op {Show 21 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>,
}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.
Trait Implementations§
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Freeze 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