pub trait ResourceReading {
const FOURCC: FourCC;
// Required method
fn from_slice(buffer: &[u8], id: u16, name: &str) -> Result<Self, Error>
where Self: Sized;
}Expand description
Implementing this trait allow reading structs transparently from a resource fork
Required Associated Constants§
Required Methods§
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.