Function tree_magic::match_vec_u8 [] [src]

pub fn match_vec_u8(bytes: Vec<u8>, mimetype: &str) -> bool

Checks if the given vector of bytes matches the given MIME type.

Returns true or false if it matches or not. If the given mime type is not known, the function will always return false.