pub struct ToolbarContext {
pub has_selection: bool,
pub can_paste: bool,
pub all_selected: bool,
}Expand description
What is true of the field and the clipboard when the bar is asked for: the three conditions the default list is built from.
Fields§
§has_selection: boolSomething is selected — Cut and Copy have something to take.
can_paste: boolThe clipboard holds text — Paste has something to give. Where the platform cannot
say without asking (the web’s clipboard is asynchronous), this is true.
all_selected: boolEverything is selected already, or there is nothing to select — Select all would do nothing.
Trait Implementations§
Source§impl Clone for ToolbarContext
impl Clone for ToolbarContext
impl Copy for ToolbarContext
Source§impl Debug for ToolbarContext
impl Debug for ToolbarContext
Source§impl Default for ToolbarContext
impl Default for ToolbarContext
impl Eq for ToolbarContext
Source§impl Hash for ToolbarContext
impl Hash for ToolbarContext
Source§impl PartialEq for ToolbarContext
impl PartialEq for ToolbarContext
impl StructuralPartialEq for ToolbarContext
Auto Trait Implementations§
impl Freeze for ToolbarContext
impl RefUnwindSafe for ToolbarContext
impl Send for ToolbarContext
impl Sync for ToolbarContext
impl Unpin for ToolbarContext
impl UnsafeUnpin for ToolbarContext
impl UnwindSafe for ToolbarContext
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