#[non_exhaustive]#[repr(u32)]pub enum cef_context_menu_edit_state_flags_t {
CM_EDITFLAG_NONE = 0,
CM_EDITFLAG_CAN_UNDO = 1,
CM_EDITFLAG_CAN_REDO = 2,
CM_EDITFLAG_CAN_CUT = 4,
CM_EDITFLAG_CAN_COPY = 8,
CM_EDITFLAG_CAN_PASTE = 16,
CM_EDITFLAG_CAN_DELETE = 32,
CM_EDITFLAG_CAN_SELECT_ALL = 64,
CM_EDITFLAG_CAN_TRANSLATE = 128,
CM_EDITFLAG_CAN_EDIT_RICHLY = 256,
}Expand description
Supported context menu edit state bit flags. These constants match their equivalents in Chromium’s ContextMenuDataEditFlags and should not be renumbered.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CM_EDITFLAG_NONE = 0
CM_EDITFLAG_CAN_UNDO = 1
CM_EDITFLAG_CAN_REDO = 2
CM_EDITFLAG_CAN_CUT = 4
CM_EDITFLAG_CAN_COPY = 8
CM_EDITFLAG_CAN_PASTE = 16
CM_EDITFLAG_CAN_DELETE = 32
CM_EDITFLAG_CAN_SELECT_ALL = 64
CM_EDITFLAG_CAN_TRANSLATE = 128
CM_EDITFLAG_CAN_EDIT_RICHLY = 256
Trait Implementations§
Source§fn clone(&self) -> cef_context_menu_edit_state_flags_t
fn clone(&self) -> cef_context_menu_edit_state_flags_t
Returns a duplicate 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§fn eq(&self, other: &cef_context_menu_edit_state_flags_t) -> bool
fn eq(&self, other: &cef_context_menu_edit_state_flags_t) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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