Enum automerge::marks::ExpandMark
source · pub enum ExpandMark {
Before,
After,
Both,
None,
}
Expand description
ExpandMark allows you to decide whether new text inserted at the start/end of your mark should also inherit the mark. See https://www.inkandswitch.com/peritext/ for details and suggestions of which value to use for which operations when building a rich text editor.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ExpandMark
impl Clone for ExpandMark
source§fn clone(&self) -> ExpandMark
fn clone(&self) -> ExpandMark
Returns a copy 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 ExpandMark
impl Debug for ExpandMark
source§impl Default for ExpandMark
impl Default for ExpandMark
source§impl PartialEq<ExpandMark> for ExpandMark
impl PartialEq<ExpandMark> for ExpandMark
source§fn eq(&self, other: &ExpandMark) -> bool
fn eq(&self, other: &ExpandMark) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ExpandMark
impl StructuralPartialEq for ExpandMark
Auto Trait Implementations§
impl RefUnwindSafe for ExpandMark
impl Send for ExpandMark
impl Sync for ExpandMark
impl Unpin for ExpandMark
impl UnwindSafe for ExpandMark
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