Struct magic::Cookie
[−]
[src]
pub struct Cookie { // some fields omitted }
pub struct Cookie { // some fields omitted }
impl Cookie
[src]fn file<P: AsRef<Path>>(&self, filename: P) -> Result<String, MagicError>
fn buffer(&self, buffer: &[u8]) -> Result<String, MagicError>
fn error(&self) -> Option<String>
fn set_flags(&self, flags: CookieFlags) -> bool
fn check<P: AsRef<Path>>(&self, filenames: &[P]) -> Result<(), MagicError>
fn compile<P: AsRef<Path>>(&self, filenames: &[P]) -> Result<(), MagicError>
fn list<P: AsRef<Path>>(&self, filenames: &[P]) -> Result<(), MagicError>
fn load<P: AsRef<Path>>(&self, filenames: &[P]) -> Result<(), MagicError>
fn open(flags: CookieFlags) -> Result<Cookie, MagicError>
impl Drop for Cookie
[src]