pub trait ClipboardProvider {
// Required methods
fn get_text(&mut self) -> Result<String, String>;
fn set_text(&mut self, _: String);
}Expand description
A trait which abstracts access to the embedder’s clipboard in order to allow unit
testing clipboard-dependent parts of script.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".