pub enum Granularity {
Character,
Line,
}
Expand description
The level of precision used for removing old content from a StringRing
.
Variants§
Character
Remove as few characters as possible (may result in partial lines at the beginning).
Line
Remove entire lines at a time, but always as few lines as possible.
In this mode, if a removed line does not end with a new line character, all content will be deleted
and future input will be discarded until a new line character is encountered.
This is to guarantee that pushing a
followed by b
is equivalent to pushing a + b
.
Auto Trait Implementations§
impl Freeze for Granularity
impl RefUnwindSafe for Granularity
impl Send for Granularity
impl Sync for Granularity
impl Unpin for Granularity
impl UnwindSafe for Granularity
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