wl_clipboard_rs::utils

Function is_text

source
pub fn is_text(mime_type: &str) -> bool
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"));