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