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

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

Required Methods§

source

fn read(&self, kind: Kind) -> Option<String>

Reads the current content of the Clipboard as text.

source

fn write(&mut self, kind: Kind, contents: String)

Writes the given text contents to the Clipboard.

Implementors§