pub struct RstRelationImbalance {
pub max_share: f32,
pub min_emissions: usize,
}Expand description
Detects when one RST relation accounts for more than max_share of
the document’s inter-sentence connectives. Default max_share is 0.6
(60%); minimum-emissions gate prevents short-document false positives.
Fields§
§min_emissions: usizeTrait Implementations§
Source§impl Clone for RstRelationImbalance
impl Clone for RstRelationImbalance
Source§fn clone(&self) -> RstRelationImbalance
fn clone(&self) -> RstRelationImbalance
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 RstRelationImbalance
impl Debug for RstRelationImbalance
Source§impl Default for RstRelationImbalance
impl Default for RstRelationImbalance
Source§impl Diagnoser for RstRelationImbalance
impl Diagnoser for RstRelationImbalance
fn name(&self) -> &'static str
fn diagnose( &self, document: &RenderedDocument, _profile: Option<&StyleProfile>, ) -> Vec<Diagnostic>
Auto Trait Implementations§
impl Freeze for RstRelationImbalance
impl RefUnwindSafe for RstRelationImbalance
impl Send for RstRelationImbalance
impl Sync for RstRelationImbalance
impl Unpin for RstRelationImbalance
impl UnsafeUnpin for RstRelationImbalance
impl UnwindSafe for RstRelationImbalance
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