Struct distill_importer::SourceMetadata[][src]

pub struct SourceMetadata<Options: 'static, State: 'static> {
    pub version: u32,
    pub importer_options: Options,
    pub importer_state: State,
}

SourceMetadata is the in-memory representation of the .meta file for a (source, .meta) pair.

Fields

version: u32

Metadata struct version

importer_options: Options

The crate::Importer::Options used to import the source file.

importer_state: State

The crate::Importer::State generated when importing the source file.

Trait Implementations

impl<'de, Options: 'static, State: 'static> Deserialize<'de> for SourceMetadata<Options, State> where
    Options: Deserialize<'de>,
    State: Deserialize<'de>, 
[src]

impl<Options: 'static, State: 'static> Serialize for SourceMetadata<Options, State> where
    Options: Serialize,
    State: Serialize
[src]

Auto Trait Implementations

impl<Options, State> RefUnwindSafe for SourceMetadata<Options, State> where
    Options: RefUnwindSafe,
    State: RefUnwindSafe

impl<Options, State> Send for SourceMetadata<Options, State> where
    Options: Send,
    State: Send

impl<Options, State> Sync for SourceMetadata<Options, State> where
    Options: Sync,
    State: Sync

impl<Options, State> Unpin for SourceMetadata<Options, State> where
    Options: Unpin,
    State: Unpin

impl<Options, State> UnwindSafe for SourceMetadata<Options, State> where
    Options: UnwindSafe,
    State: UnwindSafe

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

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.