Skip to main content

copy

Function copy 

Source
pub fn copy(text: &str) -> Pin<Box<dyn Future<Output = bool>>>
Expand description

Put text on the clipboard. The write starts now, in the caller’s turn; the future says whether the browser took it. When the Clipboard API is not there, the copy command does it at once.