pub enum Container {
Prose,
FencedCode,
Blockquote,
Quoted,
Heading,
}Expand description
Where a finding sits in the raw text, per the container pre-pass: line heuristics identify fenced, quoted, and heading content. The labels let the reader weigh those findings separately. Classification leaves every finding in the report. slop-detector has no markdown segmentation. These crude heuristics annotate raw text. The tool never discounts findings on its own.
Variants§
Prose
Ordinary running text, the default.
FencedCode
Inside a ``` fence (both marker lines included).
Blockquote
On a line whose first non-space character is >.
Quoted
Inside a straight or curly double-quoted span (quote state resets at blank lines, so an unbalanced quote cannot poison the document).
Heading
On a #-led line or a short Title Case line.
Trait Implementations§
impl Copy for Container
impl Eq for Container
impl StructuralPartialEq for Container
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnsafeUnpin for Container
impl UnwindSafe for Container
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.