Skip to main content

BytesContentParser

Trait BytesContentParser 

Source
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§

Source

fn parse(&self, bytes: Vec<u8>) -> Result<T, Box<dyn Error>>

Parses the bytes.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§