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 + 'static>>;

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

Trait for decoding data from a bundle of files

Required Associated Types§

Required Methods§

Source

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

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§