pub struct Statement {
pub text: String,
pub kind: StatementKind,
pub weight: u8,
}Expand description
A single normalized statement participating in the summarization pipeline.
Fields§
§text: String§kind: StatementKind§weight: u8Implementations§
Source§impl Statement
impl Statement
Sourcepub fn new(text: impl Into<String>, kind: StatementKind, weight: u8) -> Self
pub fn new(text: impl Into<String>, kind: StatementKind, weight: u8) -> Self
Build a statement from explicit fields.
Sourcepub fn from_seed(seed: &ProjectStatement) -> Self
pub fn from_seed(seed: &ProjectStatement) -> Self
Build a statement from a seed ProjectStatement, inferring the
numeric kind from the seed’s text label and clamping the weight.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnsafeUnpin for Statement
impl UnwindSafe for Statement
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