Function wl_clipboard_rs::utils::is_text
source · [−]Expand description
Checks if the given MIME type represents plain text.
Examples
use wl_clipboard_rs::utils::is_text;
assert!(is_text("text/plain"));
assert!(!is_text("application/octet-stream"));