pub struct StreamText {
pub full: String,
pub committed: String,
pub tentative: String,
}Expand description
A UI-facing snapshot of the stream’s text, fully owned.
Fields§
§full: StringThe raw current model hypothesis (authoritative; may rewrite anywhere).
committed: StringThe append-only, flicker-free display/input prefix.
tentative: StringThe volatile raw suffix after the committed prefix.
Implementations§
Trait Implementations§
Source§impl Clone for StreamText
impl Clone for StreamText
Source§fn clone(&self) -> StreamText
fn clone(&self) -> StreamText
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 StreamText
impl Debug for StreamText
Source§impl Default for StreamText
impl Default for StreamText
Source§fn default() -> StreamText
fn default() -> StreamText
Returns the “default value” for a type. Read more
impl Eq for StreamText
Source§impl PartialEq for StreamText
impl PartialEq for StreamText
Source§fn eq(&self, other: &StreamText) -> bool
fn eq(&self, other: &StreamText) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamText
Auto Trait Implementations§
impl Freeze for StreamText
impl RefUnwindSafe for StreamText
impl Send for StreamText
impl Sync for StreamText
impl Unpin for StreamText
impl UnsafeUnpin for StreamText
impl UnwindSafe for StreamText
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