pub struct MiddleTruncation {
pub content: String,
pub truncated: bool,
pub total_bytes: usize,
pub total_lines: usize,
}Expand description
What truncate_middle kept.
Fields§
§content: StringThe text, with the middle replaced when truncated.
truncated: boolWhether the middle was cut.
total_bytes: usizeBytes of the original.
total_lines: usizeLines of the original.
Trait Implementations§
Source§impl Clone for MiddleTruncation
impl Clone for MiddleTruncation
Source§impl Debug for MiddleTruncation
impl Debug for MiddleTruncation
impl Eq for MiddleTruncation
Source§impl PartialEq for MiddleTruncation
impl PartialEq for MiddleTruncation
impl StructuralPartialEq for MiddleTruncation
Auto Trait Implementations§
impl Forget for MiddleTruncation
impl Freeze for MiddleTruncation
impl RefUnwindSafe for MiddleTruncation
impl Send for MiddleTruncation
impl Sync for MiddleTruncation
impl Unpin for MiddleTruncation
impl UnsafeUnpin for MiddleTruncation
impl UnwindSafe for MiddleTruncation
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.