pub enum TruncationAlignment {
CharBoundary,
LineBoundary,
}Expand description
Boundary snapping strategy for middle-out truncation.
Variants§
CharBoundary
Snap strictly to valid UTF-8 character boundaries (default).
LineBoundary
Snap head back to preceding newline and tail forward to following newline,
degrading gracefully to character boundary if no newline is found within
MAX_LINE_SCAN_WINDOW.
Trait Implementations§
Source§impl Clone for TruncationAlignment
impl Clone for TruncationAlignment
impl Copy for TruncationAlignment
Source§impl Debug for TruncationAlignment
impl Debug for TruncationAlignment
Source§impl Default for TruncationAlignment
impl Default for TruncationAlignment
impl Eq for TruncationAlignment
Source§impl PartialEq for TruncationAlignment
impl PartialEq for TruncationAlignment
impl StructuralPartialEq for TruncationAlignment
Auto Trait Implementations§
impl Freeze for TruncationAlignment
impl RefUnwindSafe for TruncationAlignment
impl Send for TruncationAlignment
impl Sync for TruncationAlignment
impl Unpin for TruncationAlignment
impl UnsafeUnpin for TruncationAlignment
impl UnwindSafe for TruncationAlignment
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.