pub struct MD048 { /* private fields */ }Expand description
Rule to check code fence style consistency
Implementations§
Source§impl MD048
impl MD048
Sourcepub fn with_style(style: FenceStyle) -> Self
pub fn with_style(style: FenceStyle) -> Self
Create a new MD048 rule with specific style preference
Trait Implementations§
Source§impl AstRule for MD048
impl AstRule for MD048
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Description of what the rule checks
Source§fn metadata(&self) -> RuleMetadata
fn metadata(&self) -> RuleMetadata
Metadata about this rule’s status and properties
Source§fn check_ast<'a>(
&self,
_document: &Document,
ast: &'a AstNode<'a>,
) -> Result<Vec<Violation>>
fn check_ast<'a>( &self, _document: &Document, ast: &'a AstNode<'a>, ) -> Result<Vec<Violation>>
Check a document using its AST
Auto Trait Implementations§
impl Freeze for MD048
impl RefUnwindSafe for MD048
impl Send for MD048
impl Sync for MD048
impl Unpin for MD048
impl UnwindSafe for MD048
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> Rule for Twhere
T: AstRule,
impl<T> Rule for Twhere
T: AstRule,
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Description of what the rule checks
Source§fn metadata(&self) -> RuleMetadata
fn metadata(&self) -> RuleMetadata
Metadata about this rule’s status and properties
Source§fn check_with_ast<'a>(
&self,
document: &Document,
ast: Option<&'a Node<'a, RefCell<Ast>>>,
) -> Result<Vec<Violation>, MdBookLintError>
fn check_with_ast<'a>( &self, document: &Document, ast: Option<&'a Node<'a, RefCell<Ast>>>, ) -> Result<Vec<Violation>, MdBookLintError>
Check a document for violations of this rule with optional pre-parsed AST
Source§fn check(&self, document: &Document) -> Result<Vec<Violation>, MdBookLintError>
fn check(&self, document: &Document) -> Result<Vec<Violation>, MdBookLintError>
Check a document for violations of this rule (backward compatibility)