pub struct EditState {
pub can_cut: bool,
pub can_copy: bool,
pub can_paste: bool,
pub can_select_all: bool,
}Expand description
What the app’s edit bridge can currently do, mirrored into the toolkit
(Toolkit::set_edit_state) so native menu validation enables the stock items.
can_paste is the app’s half (“a paste handler is installed”); the toolkit combines it
with its own clipboard-has-text check where one exists.
Fields§
§can_cut: bool§can_copy: bool§can_paste: bool§can_select_all: boolTrait Implementations§
impl Copy for EditState
impl Eq for EditState
impl StructuralPartialEq for EditState
Auto Trait Implementations§
impl Freeze for EditState
impl RefUnwindSafe for EditState
impl Send for EditState
impl Sync for EditState
impl Unpin for EditState
impl UnsafeUnpin for EditState
impl UnwindSafe for EditState
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