pub enum CopyRequest {
Ready(String),
Asked,
Nothing,
}Expand description
What asking for a copy answered (Core::request_copy).
The third case is the one this type exists for: a selection can reach
rows a virtual list never built, and the core will not invent them.
It asks the app instead — a selectionrange
event on the scope — and the answer arrives later as a clipboard
action, so a copy over a gap is the app’s own text rather than a
silent hole in the middle of one.
Variants§
Ready(String)
The core had all of it; here it is.
Asked
The app was asked and has not answered yet
(Core::answer_selection_range).
Nothing
Nothing is selected.
Trait Implementations§
Source§impl Clone for CopyRequest
impl Clone for CopyRequest
Source§impl Debug for CopyRequest
impl Debug for CopyRequest
impl Eq for CopyRequest
Source§impl PartialEq for CopyRequest
impl PartialEq for CopyRequest
impl StructuralPartialEq for CopyRequest
Auto Trait Implementations§
impl Freeze for CopyRequest
impl RefUnwindSafe for CopyRequest
impl Send for CopyRequest
impl Sync for CopyRequest
impl Unpin for CopyRequest
impl UnsafeUnpin for CopyRequest
impl UnwindSafe for CopyRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.