docs/generated/contracts.mdgenerated from code
Reference · 1 min read
derive-classify
Contracts: derive-classify.
Read as
Source: crates/lvcs/src/derive.rs.
1/// How row 179's classifier classified one path (discussion:owner/172, discussion:owner/179, and2/// 180).3#[derive(Debug, Clone, PartialEq, Eq)]4pub(crate) struct Classification {5 /// Whether the file is derived.6 pub(crate) derived: bool,7 /// The rule that decided: `none` when no rule applies, and for a8 /// `NEVER_DERIVED` path.9 pub(crate) rule: DerivedRule,10 /// Whether the rule was an explicit negation (a the generator's11 /// `writes` `!` pattern), the one case a save carries `Unmark` (row12 /// 180).13 pub(crate) negated: bool,14 /// What matched, cut to `RANGE_CONTEXT_MAX_CHARS` code points: the15 /// `lvcs.toml` pattern, the `DERIVED_PATTERNS` or `NEVER_DERIVED` pattern, or the16 /// marker; empty when no rule applies.17 pub(crate) detail: String,18}