FileDecoder

Trait FileDecoder 

Source
pub trait FileDecoder<'de>: Sized {
    // Required method
    fn decode_from_file(
        file: &Path,
        buf: &'de mut Vec<u8>,
    ) -> BuckyResult<(Self, usize)>;
}

Required Methods§

Source

fn decode_from_file( file: &Path, buf: &'de mut Vec<u8>, ) -> BuckyResult<(Self, usize)>

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.

Implementors§

Source§

impl<'de, D> FileDecoder<'de> for D
where D: RawDecode<'de>,