pub struct CharFrequency {
pub hash_count: usize,
pub asterisk_count: usize,
pub underscore_count: usize,
pub hyphen_count: usize,
pub plus_count: usize,
pub gt_count: usize,
pub pipe_count: usize,
pub bracket_count: usize,
pub backtick_count: usize,
pub lt_count: usize,
pub exclamation_count: usize,
pub newline_count: usize,
}Expand description
Character frequency data for fast content analysis
Fields§
§hash_count: usizeCount of # characters (headings)
asterisk_count: usizeCount of * characters (emphasis, lists, horizontal rules)
underscore_count: usizeCount of _ characters (emphasis, horizontal rules)
hyphen_count: usizeCount of - characters (lists, horizontal rules, setext headings)
plus_count: usizeCount of + characters (lists)
gt_count: usizeCount of > characters (blockquotes)
pipe_count: usizeCount of | characters (tables)
bracket_count: usizeCount of [ characters (links, images)
backtick_count: usizeCount of ` characters (code spans, code blocks)
lt_count: usizeCount of < characters (HTML tags, autolinks)
exclamation_count: usizeCount of ! characters (images)
newline_count: usizeCount of newline characters
Trait Implementations§
Source§impl Clone for CharFrequency
impl Clone for CharFrequency
Source§fn clone(&self) -> CharFrequency
fn clone(&self) -> CharFrequency
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CharFrequency
impl Debug for CharFrequency
Source§impl Default for CharFrequency
impl Default for CharFrequency
Source§fn default() -> CharFrequency
fn default() -> CharFrequency
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CharFrequency
impl RefUnwindSafe for CharFrequency
impl Send for CharFrequency
impl Sync for CharFrequency
impl Unpin for CharFrequency
impl UnwindSafe for CharFrequency
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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