var searchIndex = {}; searchIndex["magic"] = {"doc":"# About","items":[[3,"MagicError","magic","Represents a magic error.\nFor the most part you should be using the `Error` trait\nto interact with rather than this struct.",null,null],[12,"desc","","",0,null],[3,"Cookie","","",null,null],[5,"version","","Returns the version of this crate in the format `MAJOR.MINOR.PATCH`.",null,{"inputs":[],"output":{"name":"str"}}],[0,"flags","","Bitmask flags which control `libmagic` behaviour",null,null],[3,"CookieFlags","magic::flags","Bitmask flags that specify how `Cookie` functions should behave",null,null],[17,"NONE","","No flags",null,null],[17,"DEBUG","","Turn on debugging",null,null],[17,"SYMLINK","","Follow symlinks",null,null],[17,"COMPRESS","","Check inside compressed files",null,null],[17,"DEVICES","","Look at the contents of devices",null,null],[17,"MIME_TYPE","","Return the MIME type",null,null],[17,"CONTINUE","","Return all matches",null,null],[17,"CHECK","","Print warnings to stderr",null,null],[17,"PRESERVE_ATIME","","Restore access time on exit",null,null],[17,"RAW","","Don't translate unprintable chars",null,null],[17,"ERROR","","Handle `ENOENT` etc as real errors",null,null],[17,"MIME_ENCODING","","Return the MIME encoding",null,null],[17,"MIME","","Return the MIME type and encoding",null,null],[17,"APPLE","","Return the Apple creator and type",null,null],[17,"NO_CHECK_COMPRESS","","Don't check for compressed files",null,null],[17,"NO_CHECK_TAR","","Don't check for tar files",null,null],[17,"NO_CHECK_SOFT","","Don't check magic entries",null,null],[17,"NO_CHECK_APPTYPE","","Don't check application type",null,null],[17,"NO_CHECK_ELF","","Don't check for elf details",null,null],[17,"NO_CHECK_TEXT","","Don't check for text files",null,null],[17,"NO_CHECK_CDF","","Don't check for cdf files",null,null],[17,"NO_CHECK_TOKENS","","Don't check tokens",null,null],[17,"NO_CHECK_ENCODING","","Don't check text encodings",null,null],[17,"NO_CHECK_BUILTIN","","No built-in tests; only consult the magic file",null,null],[11,"hash","","",1,null],[11,"cmp","","",1,null],[11,"partial_cmp","","",1,null],[11,"lt","","",1,null],[11,"le","","",1,null],[11,"gt","","",1,null],[11,"ge","","",1,null],[11,"clone","","",1,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"fmt","","",1,null],[11,"empty","","Returns an empty set of flags.",1,{"inputs":[],"output":{"name":"cookieflags"}}],[11,"all","","Returns the set containing all flags.",1,{"inputs":[],"output":{"name":"cookieflags"}}],[11,"bits","","Returns the raw value of the flags currently stored.",1,null],[11,"from_bits","","Convert from underlying bit representation, unless that\nrepresentation contains bits that do not correspond to a flag.",1,{"inputs":[{"name":"c_int"}],"output":{"name":"option"}}],[11,"from_bits_truncate","","Convert from underlying bit representation, dropping any bits\nthat do not correspond to flags.",1,{"inputs":[{"name":"c_int"}],"output":{"name":"cookieflags"}}],[11,"is_empty","","Returns `true` if no flags are currently stored.",1,null],[11,"is_all","","Returns `true` if all flags are currently set.",1,null],[11,"intersects","","Returns `true` if there are flags common to both `self` and `other`.",1,null],[11,"contains","","Returns `true` all of the flags in `other` are contained within `self`.",1,null],[11,"insert","","Inserts the specified flags in-place.",1,null],[11,"remove","","Removes the specified flags in-place.",1,null],[11,"toggle","","Toggles the specified flags in-place.",1,null],[11,"bitor","","Returns the union of the two sets of flags.",1,null],[11,"bitxor","","Returns the left flags, but with all the right flags toggled.",1,null],[11,"bitand","","Returns the intersection between the two sets of flags.",1,null],[11,"sub","","Returns the set difference of the two sets of flags.",1,null],[11,"not","","Returns the complement of this set of flags.",1,null],[11,"from_iter","","",1,{"inputs":[{"name":"t"}],"output":{"name":"cookieflags"}}],[11,"fmt","magic","",0,null],[11,"clone","","",0,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"description","","",0,null],[11,"fmt","","",0,null],[11,"drop","","",2,null],[11,"file","","",2,null],[11,"buffer","","",2,null],[11,"error","","",2,null],[11,"set_flags","","",2,null],[11,"check","","",2,null],[11,"compile","","",2,null],[11,"list","","",2,null],[11,"load","","",2,null],[11,"open","","",2,{"inputs":[{"name":"cookieflags"}],"output":{"name":"result"}}]],"paths":[[3,"MagicError"],[3,"CookieFlags"],[3,"Cookie"]]}; initSearch(searchIndex);