iced::advanced

Trait Clipboard

Source
pub trait Clipboard {
    // Required methods
    fn read(&self, kind: Kind) -> Option<String>;
    fn write(&mut self, kind: Kind, contents: String);
}
Available on crate feature advanced only.
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.

Implementations on Foreign Types§

Source§

impl Clipboard for Clipboard

Source§

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

Source§

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

Implementors§