pub fn has_text() -> bool
Whether the clipboard currently holds text. Cheap where the platform offers a dedicated check (UIPasteboard.hasStrings, Win32 IsClipboardFormatAvailable, …); otherwise it reads the text.
UIPasteboard.hasStrings
IsClipboardFormatAvailable