pub trait Clipboard {
    fn read(&self) -> Option<String>;
    fn write(&mut self, contents: String);
}
Expand description

A buffer for short-term storage and transfer within and between applications.

Required Methods§

source

fn read(&self) -> Option<String>

Reads the current content of the Clipboard as text.

source

fn write(&mut self, contents: String)

Writes the given text contents to the Clipboard.

Implementors§