[][src]Enum tree_magic::Cache

pub enum Cache {
    FileCache(Vec<u8>),
    FdoMagicBuiltin(bool),
    Basetype(Metadata),
}

Cache used for each checker for each file

This is sad and messy. More or less, it's a vector of possible cache types, one for each checker. The checker defines the cache types, and everything should hopefully be peachy.

Element 0 is the file cache, a Vec. This gets filled as more bytes need to be loaded. Elements 1+ correspond to each checker, as ordered in the CHECKERS array above.

Variants

FileCache(Vec<u8>)
FdoMagicBuiltin(bool)
Basetype(Metadata)

Trait Implementations

impl Clone for Cache[src]

Auto Trait Implementations

impl RefUnwindSafe for Cache

impl Send for Cache

impl Sync for Cache

impl Unpin for Cache

impl UnwindSafe for Cache

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.