pub enum EmptyPolicy {
Keep,
Drop,
}Expand description
What the mover does with a range that collapsed to empty on an edit.
Variants§
Keep
Keep the (now zero-width) range; its owner controls its lifetime and it still renders (diagnostics at least one cell wide).
Drop
Drop the range on collapse; a wholesale producer re-publishes it.
Trait Implementations§
Source§impl Clone for EmptyPolicy
impl Clone for EmptyPolicy
Source§fn clone(&self) -> EmptyPolicy
fn clone(&self) -> EmptyPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EmptyPolicy
Source§impl Debug for EmptyPolicy
impl Debug for EmptyPolicy
impl Eq for EmptyPolicy
Source§impl PartialEq for EmptyPolicy
impl PartialEq for EmptyPolicy
impl StructuralPartialEq for EmptyPolicy
Auto Trait Implementations§
impl Freeze for EmptyPolicy
impl RefUnwindSafe for EmptyPolicy
impl Send for EmptyPolicy
impl Sync for EmptyPolicy
impl Unpin for EmptyPolicy
impl UnsafeUnpin for EmptyPolicy
impl UnwindSafe for EmptyPolicy
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§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.