pub struct MacOSClipboardContext { /* private fields */ }
Trait Implementations§
Source§impl ClipboardProvider for MacOSClipboardContext
impl ClipboardProvider for MacOSClipboardContext
Source§fn new() -> Result<MacOSClipboardContext, Box<dyn Error>>
fn new() -> Result<MacOSClipboardContext, Box<dyn Error>>
Create a context with which to access the clipboard
Source§fn get_contents(&mut self) -> Result<String, Box<dyn Error>>
fn get_contents(&mut self) -> Result<String, Box<dyn Error>>
Method to get the clipboard contents as a String
Auto Trait Implementations§
impl Freeze for MacOSClipboardContext
impl RefUnwindSafe for MacOSClipboardContext
impl Send for MacOSClipboardContext
impl Sync for MacOSClipboardContext
impl Unpin for MacOSClipboardContext
impl UnwindSafe for MacOSClipboardContext
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