iced_core::clipboard

Trait Clipboard

Source
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§