pub enum StatementKind {
Identity,
Purpose,
Language,
Stars,
Feature,
UseCase,
Install,
Example,
Misc,
}Expand description
Coarse classification used by the summarizer to decide which statements
survive a compression pass. Mirrors the kind "..." field accepted by
data/seed/projects.lino.
Variants§
Identity
“X is Y” — the bare identity of the project / subject.
Purpose
Why the project exists / what problem it solves.
Language
Programming language or runtime.
Stars
Star count or other social proof.
Feature
A concrete capability the project offers.
UseCase
When the reader should reach for the project.
Install
Installation / setup instructions.
Example
Example invocation, code snippet, command-line usage.
Misc
Anything else (treated as low-weight by default).
Implementations§
Source§impl StatementKind
impl StatementKind
Sourcepub fn parse(value: &str) -> Self
pub fn parse(value: &str) -> Self
Parse a kind label from a seed kind "..." field. Unknown labels
fall back to StatementKind::Misc so the data file remains forward-
compatible with new kinds added in code.
Sourcepub fn from_slug(slug: &str) -> Self
pub fn from_slug(slug: &str) -> Self
Map the slug of a summary_classification_cue meaning to its kind. The
seven summary_kind_* leaves in data/seed/meanings-summary.lino carry
the cue surfaces that classify_sentence scans; this resolves the
meaning that matched back into a StatementKind. Unknown slugs fall
back to StatementKind::Misc so the seed stays forward-compatible.
Sourcepub const fn is_essential(self) -> bool
pub const fn is_essential(self) -> bool
true when the statement carries information that survives the
tightest “what is X?” responses (identity, purpose, language, stars).
Sourcepub const fn is_boilerplate(self) -> bool
pub const fn is_boilerplate(self) -> bool
true when the statement is README boilerplate (install / example)
that should be omitted from compressed answers.
Trait Implementations§
Source§impl Clone for StatementKind
impl Clone for StatementKind
Source§fn clone(&self) -> StatementKind
fn clone(&self) -> StatementKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StatementKind
Source§impl Debug for StatementKind
impl Debug for StatementKind
Source§impl Default for StatementKind
impl Default for StatementKind
Source§fn default() -> StatementKind
fn default() -> StatementKind
impl Eq for StatementKind
Source§impl PartialEq for StatementKind
impl PartialEq for StatementKind
impl StructuralPartialEq for StatementKind
Auto Trait Implementations§
impl Freeze for StatementKind
impl RefUnwindSafe for StatementKind
impl Send for StatementKind
impl Sync for StatementKind
impl Unpin for StatementKind
impl UnsafeUnpin for StatementKind
impl UnwindSafe for StatementKind
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
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
key and return true if they are equal.