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: CursorCursor indicating start of change
end: CursorCursor indicating end of change
text: StringText to be inserted or deleted
insert: boolInsert 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