pub trait RasterPageReader<R>: Sized{
type Header;
type Decoder: RasterDecoder<R>;
type Error;
type NextPageFuture: Future<Output = Result<Option<Self>, Self::Error>>;
// Required methods
fn next_page(self) -> Self::NextPageFuture;
fn header(&self) -> &Self::Header;
fn content_mut(&mut self) -> &mut Self::Decoder;
fn into_content(self) -> Self::Decoder;
}Required Associated Types§
type Header
type Decoder: RasterDecoder<R>
type Error
type NextPageFuture: Future<Output = Result<Option<Self>, Self::Error>>
Required Methods§
fn next_page(self) -> Self::NextPageFuture
fn header(&self) -> &Self::Header
fn content_mut(&mut self) -> &mut Self::Decoder
fn into_content(self) -> Self::Decoder
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.