pub trait BytesContentParser<T> {
// Required method
fn parse(&self, bytes: Vec<u8>) -> Result<T, Box<dyn Error>>;
}Expand description
Turns raw file bytes into whatever a frontend works with.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".