#[non_exhaustive]pub enum MissingVar {
Null,
Error,
}Expand description
What a var / val read that finds nothing evaluates to. See
EvaluationConfig::missing_var.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Null
null, as JSONLogic specifies.
Error
An ErrorKind::VariableNotFound
error naming the path.
Iterators then read every element through the general path, since
an inline field read cannot raise. That path is slower;
Engine::evaluate_metered charges the same count on either.
Trait Implementations§
Source§impl Clone for MissingVar
impl Clone for MissingVar
impl Copy for MissingVar
Source§impl Debug for MissingVar
impl Debug for MissingVar
Source§impl Default for MissingVar
impl Default for MissingVar
impl Eq for MissingVar
Source§impl PartialEq for MissingVar
impl PartialEq for MissingVar
impl StructuralPartialEq for MissingVar
Auto Trait Implementations§
impl Freeze for MissingVar
impl RefUnwindSafe for MissingVar
impl Send for MissingVar
impl Sync for MissingVar
impl Unpin for MissingVar
impl UnsafeUnpin for MissingVar
impl UnwindSafe for MissingVar
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