pub struct StoredLine {
pub line: u64,
pub text: String,
pub omitted: u64,
}Expand description
A stored line as a LineRead gives it: its number, and its text, cut to the bytes the read asked for.
Fields§
§line: u64Its number in the stored log, from 0.
text: StringIts text, or the first of it; bytes that are not UTF-8 replaced.
omitted: u64The stored bytes not in text.
Implementations§
Source§impl StoredLine
impl StoredLine
Sourcepub fn cut(line: u64, read: &[u8], stored: u64) -> StoredLine
pub fn cut(line: u64, read: &[u8], stored: u64) -> StoredLine
Line line from the first read of its stored bytes: a character the cut splits is left out.
Sourcepub fn styled(&self) -> StyledLine
pub fn styled(&self) -> StyledLine
Styled, what it omits counted.
Trait Implementations§
Source§impl Clone for StoredLine
impl Clone for StoredLine
Source§impl Debug for StoredLine
impl Debug for StoredLine
impl Eq for StoredLine
Source§impl PartialEq for StoredLine
impl PartialEq for StoredLine
impl StructuralPartialEq for StoredLine
Auto Trait Implementations§
impl Forget for StoredLine
impl Freeze for StoredLine
impl Move for StoredLine
impl RefUnwindSafe for StoredLine
impl Send for StoredLine
impl Sync for StoredLine
impl Unpin for StoredLine
impl UnsafeUnpin for StoredLine
impl UnwindSafe for StoredLine
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
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
Compare self to
key and return true if they are equal.