pub struct EditOp {
pub range: Range<u32>,
pub text: String,
}Expand description
One replacement: put text where range currently is. range is in
pre-edit byte coordinates; an empty range with empty text is a no-op and
is dropped.
(A cursor: Option<CursorPolicy> field will join this once selections exist
to position against; it has no consumer yet, so it is not built.)
Fields§
§range: Range<u32>Pre-edit byte range to replace.
text: StringReplacement text (normalized to LF at the boundary).
Implementations§
Trait Implementations§
impl Eq for EditOp
impl StructuralPartialEq for EditOp
Auto Trait Implementations§
impl Freeze for EditOp
impl RefUnwindSafe for EditOp
impl Send for EditOp
impl Sync for EditOp
impl Unpin for EditOp
impl UnsafeUnpin for EditOp
impl UnwindSafe for EditOp
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.