pub struct AdmonitionValidator;Expand description
Validator for admonition directive
Implementations§
Trait Implementations§
Source§impl Default for AdmonitionValidator
impl Default for AdmonitionValidator
Source§fn default() -> AdmonitionValidator
fn default() -> AdmonitionValidator
Returns the “default value” for a type. Read more
Source§impl DirectiveValidator for AdmonitionValidator
impl DirectiveValidator for AdmonitionValidator
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 AdmonitionValidator
impl RefUnwindSafe for AdmonitionValidator
impl Send for AdmonitionValidator
impl Sync for AdmonitionValidator
impl Unpin for AdmonitionValidator
impl UnwindSafe for AdmonitionValidator
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