pub trait FileDecoder<'de>: Sized {
// Required method
fn decode_from_file(
file: &Path,
buf: &'de mut Vec<u8>,
) -> BuckyResult<(Self, usize)>;
}
Required Methods§
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.