Skip to main content

get

Function get 

Source
pub fn get() -> String
Expand description

Paste: the system provider, falling back to the register.

The provider wins when it answers, so text copied in another application is available here. An empty answer counts as no answer — every provider prints nothing when the clipboard holds nothing, which is indistinguishable from failing, and preferring the register in that case is the more useful guess.