pub struct DocumentReport {
pub word_count: usize,
pub diagnostics: Vec<Diagnostic>,
pub category_counts: BTreeMap<Category, usize>,
pub profile: String,
}Expand description
Summary statistics for a document.
Fields§
§word_count: usize§diagnostics: Vec<Diagnostic>§category_counts: BTreeMap<Category, usize>§profile: StringImplementations§
Source§impl DocumentReport
impl DocumentReport
Sourcepub fn density_per_100_words(&self) -> f32
pub fn density_per_100_words(&self) -> f32
Style density = flags per 100 words (rounded up).
Trait Implementations§
Source§impl Clone for DocumentReport
impl Clone for DocumentReport
Source§impl Debug for DocumentReport
impl Debug for DocumentReport
Source§impl<'de> Deserialize<'de> for DocumentReport
impl<'de> Deserialize<'de> for DocumentReport
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
Auto Trait Implementations§
impl Freeze for DocumentReport
impl RefUnwindSafe for DocumentReport
impl Send for DocumentReport
impl Sync for DocumentReport
impl Unpin for DocumentReport
impl UnsafeUnpin for DocumentReport
impl UnwindSafe for DocumentReport
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