Function bindet::detect

source · []
pub fn detect<R>(read: R) -> Result<Option<FileTypeMatches>, Error> where
    R: Read,
    R: Seek
Expand description

Detect a file type by looking at the start and at the end of the file (at the end only for applicable file types)

Since different FileType detection implementations receives the same data slice, it may produce more than one matching types.