pub enum Strategy {
Head,
Ends,
Tail,
Sections,
}Expand description
Which end of a text survives a shortening.
Variants§
Head
Keep the front. Prose and tables read from the top.
Ends
Keep both ends and mark the gap. Code and diffs are read from the edges inward.
Tail
Keep the back. A log’s news is at the end.
Sections
Keep whole sections from the front, then the headings of the sections that did not fit. The reader loses bodies and keeps the map of what was written.
Trait Implementations§
impl Copy for Strategy
impl Eq for Strategy
impl StructuralPartialEq for Strategy
Auto Trait Implementations§
impl Freeze for Strategy
impl RefUnwindSafe for Strategy
impl Send for Strategy
impl Sync for Strategy
impl Unpin for Strategy
impl UnsafeUnpin for Strategy
impl UnwindSafe for Strategy
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