pub struct Expression;Expand description
Stateless entry points for the CRUDUI expression engine.
Implementations§
Source§impl Expression
impl Expression
Sourcepub fn tokenize(expression: &str) -> Result<Vec<Token>, ParseError>
pub fn tokenize(expression: &str) -> Result<Vec<Token>, ParseError>
Tokenize an expression. WHITESPACE excluded; ends with EOF.
Sourcepub fn evaluate(
expression: &str,
form_data: &Value,
current_path: &[String],
row_keys: &[usize],
) -> Result<bool, ParseError>
pub fn evaluate( expression: &str, form_data: &Value, current_path: &[String], row_keys: &[usize], ) -> Result<bool, ParseError>
Evaluate to a truthy boolean (show/display call site).
Sourcepub fn evaluate_value(
expression: &str,
form_data: &Value,
current_path: &[String],
row_keys: &[usize],
) -> Result<Value, ParseError>
pub fn evaluate_value( expression: &str, form_data: &Value, current_path: &[String], row_keys: &[usize], ) -> Result<Value, ParseError>
Evaluate to the raw value (class/style/number/null call site).
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnsafeUnpin for Expression
impl UnwindSafe for Expression
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