pub enum CommandResult {
Success,
Text(String),
Position(Position),
Offset(usize),
Viewport(HeadlessGrid),
SearchMatch {
start: usize,
end: usize,
},
SearchNotFound,
ReplaceResult {
replaced: usize,
},
}Expand description
Command execution result
Variants§
Success
Success, no return value
Text(String)
Success, returns text
Position(Position)
Success, returns position
Offset(usize)
Success, returns offset
Viewport(HeadlessGrid)
Success, returns viewport content
SearchMatch
Find/search result: a match in char offsets (half-open).
SearchNotFound
Find/search result: no match found.
ReplaceResult
Replace result: how many occurrences were replaced.
Trait Implementations§
Source§impl Clone for CommandResult
impl Clone for CommandResult
Auto Trait Implementations§
impl Forget for CommandResult
impl Freeze for CommandResult
impl Move for CommandResult
impl RefUnwindSafe for CommandResult
impl Send for CommandResultwhere
RawVecInner: Send,
impl Sync for CommandResultwhere
RawVecInner: Sync,
impl Unpin for CommandResult
impl UnsafeUnpin for CommandResultwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<HeadlessLine>: UnsafeUnpin,
impl UnwindSafe for CommandResultwhere
RawVecInner: UnwindSafe,
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