Skip to main content

SourceReader

Trait SourceReader 

Source
pub trait SourceReader {
    // Required method
    fn read(&self, path: &Path) -> ArtifactResult<Vec<u8>>;
}

Required Methods§

Source

fn read(&self, path: &Path) -> ArtifactResult<Vec<u8>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F> SourceReader for F
where F: Fn(&Path) -> ArtifactResult<Vec<u8>>,