pub struct ContentAnalysis {Show 13 fields
pub has_headings: bool,
pub has_lists: bool,
pub has_links: bool,
pub has_code: bool,
pub has_emphasis: bool,
pub has_html: bool,
pub has_blockquotes: bool,
pub has_tables: bool,
pub has_trailing_spaces: bool,
pub has_hard_tabs: bool,
pub has_long_lines: bool,
pub line_count: usize,
pub char_count: usize,
}Expand description
Comprehensive content analysis for rule filtering
Fields§
§has_headings: bool§has_lists: bool§has_links: bool§has_code: bool§has_emphasis: bool§has_html: bool§has_blockquotes: bool§has_tables: bool§has_trailing_spaces: bool§has_hard_tabs: bool§has_long_lines: bool§line_count: usize§char_count: usizeImplementations§
Trait Implementations§
Source§impl Debug for ContentAnalysis
impl Debug for ContentAnalysis
Source§impl Default for ContentAnalysis
impl Default for ContentAnalysis
Source§fn default() -> ContentAnalysis
fn default() -> ContentAnalysis
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContentAnalysis
impl RefUnwindSafe for ContentAnalysis
impl Send for ContentAnalysis
impl Sync for ContentAnalysis
impl Unpin for ContentAnalysis
impl UnwindSafe for ContentAnalysis
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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