pub struct LocalClipboard { /* private fields */ }Expand description
Local clipboard. A string in disguise.
Implementations§
Trait Implementations§
Source§impl Clipboard for LocalClipboard
impl Clipboard for LocalClipboard
Source§fn get_string(&self) -> Result<String, ClipboardError>
fn get_string(&self) -> Result<String, ClipboardError>
Get text from the clipboard.
Source§fn set_string(&self, s: &str) -> Result<(), ClipboardError>
fn set_string(&self, s: &str) -> Result<(), ClipboardError>
Set text to the clipboard.
Source§impl Clone for LocalClipboard
impl Clone for LocalClipboard
Source§fn clone(&self) -> LocalClipboard
fn clone(&self) -> LocalClipboard
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§impl Debug for LocalClipboard
impl Debug for LocalClipboard
Source§impl Default for LocalClipboard
impl Default for LocalClipboard
Source§fn default() -> LocalClipboard
fn default() -> LocalClipboard
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocalClipboard
impl RefUnwindSafe for LocalClipboard
impl Send for LocalClipboard
impl Sync for LocalClipboard
impl Unpin for LocalClipboard
impl UnwindSafe for LocalClipboard
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more