Macro magic

Source
macro_rules! magic {
    () => { ... };
    ($flags:expr) => { ... };
    (,$magic_databases:expr) => { ... };
    ($flags:expr, $magic_databases:expr) => { ... };
}
Expand description

Returns the Mime type of a file

§Usage Example

use filemagic::magic;

let magic = magic!();
println!("{}", magic.file("path/to/file"));