Struct cosmic_text::ChangeItem
source · pub struct ChangeItem {
pub start: Cursor,
pub end: Cursor,
pub text: String,
pub insert: bool,
}
Expand description
A unique change to an editor
Fields§
§start: Cursor
Cursor indicating start of change
end: Cursor
Cursor indicating end of change
text: String
Text to be inserted or deleted
insert: bool
Insert if true, delete if false
Implementations§
source§impl ChangeItem
impl ChangeItem
Trait Implementations§
source§impl Clone for ChangeItem
impl Clone for ChangeItem
source§fn clone(&self) -> ChangeItem
fn clone(&self) -> ChangeItem
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ChangeItem
impl Send for ChangeItem
impl Sync for ChangeItem
impl Unpin for ChangeItem
impl UnwindSafe for ChangeItem
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