pub trait ContentSource {
// Required method
fn content(&self, hash: &str) -> Option<Cow<'_, [u8]>>;
}Expand description
Read access to content by address, for code that turns documents into something else (an exporter embedding images, a renderer) without doing I/O of its own.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".