pub enum Anchor {
Cursor,
Position(TextPos),
SelectionStart,
SelectionEnd,
DocumentStart,
DocumentEnd,
}Expand description
Symbolic anchor inside an edit request. Resolved against the live
crate::text_model::TextCursor / crate::text_model::TextBuffer
inside the mutator.
Variants§
Cursor
Resolve to the cursor head.
Position(TextPos)
Explicit position.
SelectionStart
Resolve to the lower end of the selection (== cursor head when no selection).
SelectionEnd
Resolve to the upper end of the selection.
DocumentStart
Buffer start.
DocumentEnd
Buffer end.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Anchor
impl RefUnwindSafe for Anchor
impl Send for Anchor
impl Sync for Anchor
impl Unpin for Anchor
impl UnsafeUnpin for Anchor
impl UnwindSafe for Anchor
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,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.