Skip to main content

BundleDecode

Trait BundleDecode 

Source
pub trait BundleDecode: Sized {
    type Settings: Default + Serialize + DeserializeOwned;
    type Error: Into<Box<dyn Error + Send + Sync>>;

    // Required method
    fn decode<I>(
        source: &I,
        settings: &Self::Settings,
    ) -> Result<Self, Self::Error>
       where I: BundleSource;
}
Expand description

Trait for decoding data from a bundle of files

Required Associated Types§

Required Methods§

Source

fn decode<I>(source: &I, settings: &Self::Settings) -> Result<Self, Self::Error>
where I: BundleSource,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§