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§
type Settings: Default + Serialize + DeserializeOwned
type Error: Into<Box<dyn Error + Send + Sync + 'static>>
Required Methods§
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.