pub struct CutResult { /* private fields */ }Expand description
Result of cutting a selection together with the resulting edit outcome.
Implementations§
Source§impl CutResult
impl CutResult
Sourcepub fn new(text: String, edit: EditResult) -> Self
pub fn new(text: String, edit: EditResult) -> Self
Creates a cut result.
Sourcepub const fn edit(&self) -> EditResult
pub const fn edit(&self) -> EditResult
Returns the underlying edit result.
Sourcepub const fn cursor(&self) -> TextPosition
pub const fn cursor(&self) -> TextPosition
Returns the resulting cursor position.
Trait Implementations§
impl Eq for CutResult
impl StructuralPartialEq for CutResult
Auto Trait Implementations§
impl Freeze for CutResult
impl RefUnwindSafe for CutResult
impl Send for CutResult
impl Sync for CutResult
impl Unpin for CutResult
impl UnsafeUnpin for CutResult
impl UnwindSafe for CutResult
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