#[non_exhaustive]#[repr(u8)]pub enum Clipboard {
DefaultClipboard = 0,
SelectionClipboard = 1,
}
Expand description
The clip board, used in Platform::clipboard_text
and Platform::set_clipboard_text`
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.
DefaultClipboard = 0
This is the default clipboard used for text action for Ctrl+V, Ctrl+C. Corresponds to the secondary clipboard on X11.
SelectionClipboard = 1
This is the clipboard that is used when text is selected Corresponds to the primary clipboard on X11. The Platform implementation should do nothing if copy on select is not supported on that platform.
Trait Implementations§
impl StructuralPartialEq for Clipboard
Auto Trait Implementations§
impl Freeze for Clipboard
impl RefUnwindSafe for Clipboard
impl Send for Clipboard
impl Sync for Clipboard
impl Unpin for Clipboard
impl UnwindSafe for Clipboard
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