#[non_exhaustive]pub enum CheckMode {
Engine,
Strict,
Template,
}Expand description
Which mode a rule is checked in. See Engine::check.
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.
Engine
The engine’s own mode, as Engine::compile
would compile the rule.
Strict
Outside templating mode, as
Engine::compile_strict would.
Template
In templating mode, as Engine::compile_template would (that method
needs the templating feature; the check does not).
Trait Implementations§
impl Copy for CheckMode
impl Eq for CheckMode
impl StructuralPartialEq for CheckMode
Auto Trait Implementations§
impl Freeze for CheckMode
impl RefUnwindSafe for CheckMode
impl Send for CheckMode
impl Sync for CheckMode
impl Unpin for CheckMode
impl UnsafeUnpin for CheckMode
impl UnwindSafe for CheckMode
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