pub struct MathValidator;Expand description
Validator for math directive
Implementations§
Source§impl MathValidator
impl MathValidator
Trait Implementations§
Source§impl Default for MathValidator
impl Default for MathValidator
Source§fn default() -> MathValidator
fn default() -> MathValidator
Returns the “default value” for a type. Read more
Source§impl DirectiveValidator for MathValidator
impl DirectiveValidator for MathValidator
Source§fn validate(&self, directive: &ParsedDirective) -> DirectiveValidationResult
fn validate(&self, directive: &ParsedDirective) -> DirectiveValidationResult
Validates a parsed directive
Source§fn expected_arguments(&self) -> Vec<String>
fn expected_arguments(&self) -> Vec<String>
Returns expected arguments for this directive
Source§fn valid_options(&self) -> Vec<String>
fn valid_options(&self) -> Vec<String>
Returns valid options for this directive
Source§fn requires_content(&self) -> bool
fn requires_content(&self) -> bool
Returns whether this directive requires content
Source§fn allows_content(&self) -> bool
fn allows_content(&self) -> bool
Returns whether this directive allows content
Source§fn get_suggestions(&self, directive: &ParsedDirective) -> Vec<String>
fn get_suggestions(&self, directive: &ParsedDirective) -> Vec<String>
Provides suggestions for fixing directive issues
Auto Trait Implementations§
impl Freeze for MathValidator
impl RefUnwindSafe for MathValidator
impl Send for MathValidator
impl Sync for MathValidator
impl Unpin for MathValidator
impl UnwindSafe for MathValidator
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more