pub struct EditorInputOutcome {
pub text_changed: bool,
pub state_changed: bool,
pub clipboard_write: Option<String>,
pub clipboard_read: bool,
}Expand description
Aggregate result returned by editor input helpers.
clipboard_write = Some("") requests writing an empty clipboard string and
differs from None. clipboard_read requests a later host read.
§Examples
use ailloli_ui_editor::EditorInputOutcome;
let outcome = EditorInputOutcome::default();
assert!(!outcome.text_changed && !outcome.state_changed);
assert_eq!(outcome.clipboard_write, None);
assert!(!outcome.clipboard_read);Fields§
§text_changed: boolWhether buffer bytes changed.
state_changed: boolWhether selection, caret, composition, or another edit state changed.
clipboard_write: Option<String>Exact text to write, or None for no clipboard write request.
clipboard_read: boolWhether the host should read clipboard text for a pending paste.
Trait Implementations§
Source§impl Clone for EditorInputOutcome
impl Clone for EditorInputOutcome
Source§fn clone(&self) -> EditorInputOutcome
fn clone(&self) -> EditorInputOutcome
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 moreSource§impl Debug for EditorInputOutcome
impl Debug for EditorInputOutcome
Source§impl Default for EditorInputOutcome
impl Default for EditorInputOutcome
Source§fn default() -> EditorInputOutcome
fn default() -> EditorInputOutcome
Returns the “default value” for a type. Read more
Source§impl From<TextEditOutcome> for EditorInputOutcome
Preserves every field from the lower-level text-edit outcome.
impl From<TextEditOutcome> for EditorInputOutcome
Preserves every field from the lower-level text-edit outcome.
Source§impl PartialEq for EditorInputOutcome
impl PartialEq for EditorInputOutcome
impl Eq for EditorInputOutcome
impl StructuralPartialEq for EditorInputOutcome
Auto Trait Implementations§
impl Freeze for EditorInputOutcome
impl RefUnwindSafe for EditorInputOutcome
impl Send for EditorInputOutcome
impl Sync for EditorInputOutcome
impl Unpin for EditorInputOutcome
impl UnwindSafe for EditorInputOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.