pub enum KeepSeparator {
Left,
Right,
}Expand description
How to handle separators when splitting.
Variants§
Left
Include separator at the end of the preceding chunk.
Right
Include separator at the start of the following chunk.
Trait Implementations§
Source§impl Clone for KeepSeparator
impl Clone for KeepSeparator
Source§fn clone(&self) -> KeepSeparator
fn clone(&self) -> KeepSeparator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeepSeparator
impl Debug for KeepSeparator
Source§impl PartialEq for KeepSeparator
impl PartialEq for KeepSeparator
impl Copy for KeepSeparator
impl Eq for KeepSeparator
impl StructuralPartialEq for KeepSeparator
Auto Trait Implementations§
impl Freeze for KeepSeparator
impl RefUnwindSafe for KeepSeparator
impl Send for KeepSeparator
impl Sync for KeepSeparator
impl Unpin for KeepSeparator
impl UnsafeUnpin for KeepSeparator
impl UnwindSafe for KeepSeparator
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