pub struct CompletedSentence {
pub content: String,
pub content_bytes: usize,
pub bytes_consumed: usize,
}Expand description
One completed sentence from the segmenter, with buffer consumption.
Fields§
§content: StringSentence text (trimmed trailing whitespace).
content_bytes: usizeBytes of the content region (through terminator, excluding following whitespace). Used for dialect source-time attribution.
bytes_consumed: usizeBytes removed from the assembly buffer for this sentence (content region + trailing whitespace after the terminator).
Trait Implementations§
Source§impl Clone for CompletedSentence
impl Clone for CompletedSentence
Source§fn clone(&self) -> CompletedSentence
fn clone(&self) -> CompletedSentence
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 CompletedSentence
impl Debug for CompletedSentence
impl Eq for CompletedSentence
Source§impl PartialEq for CompletedSentence
impl PartialEq for CompletedSentence
impl StructuralPartialEq for CompletedSentence
Auto Trait Implementations§
impl Freeze for CompletedSentence
impl RefUnwindSafe for CompletedSentence
impl Send for CompletedSentence
impl Sync for CompletedSentence
impl Unpin for CompletedSentence
impl UnsafeUnpin for CompletedSentence
impl UnwindSafe for CompletedSentence
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