pub struct ParagraphOpenerMonotony {
pub threshold: usize,
pub min_paragraphs: usize,
}Expand description
Detects when the same connective opens ≥ threshold of the document’s
paragraphs. Default threshold is 3 with a minimum-paragraphs gate of 4
— fires when at least 3 of 4+ paragraphs share an opener, never on
short documents where the pattern is statistically meaningless.
Fields§
§threshold: usize§min_paragraphs: usizeTrait Implementations§
Source§impl Clone for ParagraphOpenerMonotony
impl Clone for ParagraphOpenerMonotony
Source§fn clone(&self) -> ParagraphOpenerMonotony
fn clone(&self) -> ParagraphOpenerMonotony
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 moreSource§impl Debug for ParagraphOpenerMonotony
impl Debug for ParagraphOpenerMonotony
Source§impl Default for ParagraphOpenerMonotony
impl Default for ParagraphOpenerMonotony
Source§impl Diagnoser for ParagraphOpenerMonotony
impl Diagnoser for ParagraphOpenerMonotony
fn name(&self) -> &'static str
fn diagnose( &self, document: &RenderedDocument, _profile: Option<&StyleProfile>, ) -> Vec<Diagnostic>
Auto Trait Implementations§
impl Freeze for ParagraphOpenerMonotony
impl RefUnwindSafe for ParagraphOpenerMonotony
impl Send for ParagraphOpenerMonotony
impl Sync for ParagraphOpenerMonotony
impl Unpin for ParagraphOpenerMonotony
impl UnsafeUnpin for ParagraphOpenerMonotony
impl UnwindSafe for ParagraphOpenerMonotony
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