Introduce write method to Clipboard trait
This commit is contained in:
parent
b22b0dd7ff
commit
35425001ed
2 changed files with 10 additions and 0 deletions
|
|
@ -3,4 +3,7 @@
|
|||
pub trait Clipboard {
|
||||
/// Reads the current content of the [`Clipboard`] as text.
|
||||
fn read(&self) -> Option<String>;
|
||||
|
||||
/// Writes the given text contents to the [`Clipboard`].
|
||||
fn write(&mut self, contents: String);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue