pub struct DetailedTextStats {
pub basic: TextStats,
pub paragraphs: usize,
pub tokens: usize,
pub unique_tokens: usize,
pub average_words_per_sentence: f32,
pub average_chars_per_word: f32,
}Expand description
Data type for detailed text stats.
Fields§
§basic: TextStatsThe basic value.
paragraphs: usizeThe paragraphs value.
tokens: usizeThe tokens value.
unique_tokens: usizeThe unique tokens value.
average_words_per_sentence: f32The average words per sentence value.
average_chars_per_word: f32The average chars per word value.
Trait Implementations§
Source§impl Clone for DetailedTextStats
impl Clone for DetailedTextStats
Source§fn clone(&self) -> DetailedTextStats
fn clone(&self) -> DetailedTextStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DetailedTextStats
Source§impl Debug for DetailedTextStats
impl Debug for DetailedTextStats
Source§impl<'de> Deserialize<'de> for DetailedTextStats
impl<'de> Deserialize<'de> for DetailedTextStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DetailedTextStats
impl PartialEq for DetailedTextStats
Source§fn eq(&self, other: &DetailedTextStats) -> bool
fn eq(&self, other: &DetailedTextStats) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DetailedTextStats
impl Serialize for DetailedTextStats
impl StructuralPartialEq for DetailedTextStats
Auto Trait Implementations§
impl Freeze for DetailedTextStats
impl RefUnwindSafe for DetailedTextStats
impl Send for DetailedTextStats
impl Sync for DetailedTextStats
impl Unpin for DetailedTextStats
impl UnsafeUnpin for DetailedTextStats
impl UnwindSafe for DetailedTextStats
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