From 35425001edcb54d861a42ec6d23f9e57b37745fd Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 10 Mar 2021 01:18:22 +0100 Subject: Introduce `write` method to `Clipboard` trait --- native/src/clipboard.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'native/src/clipboard.rs') diff --git a/native/src/clipboard.rs b/native/src/clipboard.rs index 3eeb184d..fdb769da 100644 --- a/native/src/clipboard.rs +++ b/native/src/clipboard.rs @@ -3,4 +3,7 @@ pub trait Clipboard { /// Reads the current content of the [`Clipboard`] as text. fn read(&self) -> Option; + + /// Writes the given text contents to the [`Clipboard`]. + fn write(&mut self, contents: String); } -- cgit