pub enum SliceMode {
RemoveEmptySlices,
PreserveEmptyTextSliceCaret,
}Expand description
The sliceMode of remove_text_from_caret_range.
Variants§
RemoveEmptySlices
'removeEmptySlices': a text node whose text is all removed is
removed.
PreserveEmptyTextSliceCaret
'preserveEmptyTextSliceCaret': the first such text node is kept,
empty, for an insertion.
Trait Implementations§
impl Copy for SliceMode
impl Eq for SliceMode
impl StructuralPartialEq for SliceMode
Auto Trait Implementations§
impl Forget for SliceMode
impl Freeze for SliceMode
impl Move for SliceMode
impl RefUnwindSafe for SliceMode
impl Send for SliceMode
impl Sync for SliceMode
impl Unpin for SliceMode
impl UnsafeUnpin for SliceMode
impl UnwindSafe for SliceMode
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