Skip to main content

set_text

Function set_text 

Source
pub fn set_text(text: &str) -> bool
Expand description

Place text on the system clipboard as plain text, replacing the previous contents. Returns true on success, false when the platform has no clipboard API or the write failed (e.g. no wl-copy/xclip binary on Linux).

Day API ↩ Guides· daybrite.dev