pub struct SourceMetadata<Options: 'static, State: 'static> {
pub version: u32,
pub importer_options: Options,
pub importer_state: State,
}Expand description
SourceMetadata is the in-memory representation of the .meta file for a (source, .meta) pair.
Fields§
§version: u32Metadata struct version
importer_options: OptionsThe crate::Importer::Options used to import the source file.
importer_state: StateThe crate::Importer::State generated when importing the source file.
Trait Implementations§
Source§impl<'de, Options, State> Deserialize<'de> for SourceMetadata<Options, State>where
Options: Deserialize<'de> + 'static,
State: Deserialize<'de> + 'static,
impl<'de, Options, State> Deserialize<'de> for SourceMetadata<Options, State>where
Options: Deserialize<'de> + 'static,
State: Deserialize<'de> + 'static,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Options, State> Serialize for SourceMetadata<Options, State>
impl<Options, State> Serialize for SourceMetadata<Options, State>
Auto Trait Implementations§
impl<Options, State> Freeze for SourceMetadata<Options, State>
impl<Options, State> RefUnwindSafe for SourceMetadata<Options, State>where
Options: RefUnwindSafe,
State: RefUnwindSafe,
impl<Options, State> Send for SourceMetadata<Options, State>
impl<Options, State> Sync for SourceMetadata<Options, State>
impl<Options, State> Unpin for SourceMetadata<Options, State>
impl<Options, State> UnwindSafe for SourceMetadata<Options, State>where
Options: UnwindSafe,
State: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more