Struct PnmDecoder

struct PnmDecoder<R> { ... }

PNM decoder

Implementations

impl<R: Read> PnmDecoder<R>

fn new(buffered_read: R) -> ImageResult<PnmDecoder<R>>

Create a new decoder that decodes from the stream read

fn into_inner(self: Self) -> (R, PnmHeader)

Extract the reader and header after an image has been read.

impl<R: Read> PnmDecoder<R>

fn subtype(self: &Self) -> PnmSubtype

Get the pnm subtype, depending on the magic constant contained in the header

impl<R> Freeze for PnmDecoder<R>

impl<R> RefUnwindSafe for PnmDecoder<R>

impl<R> Send for PnmDecoder<R>

impl<R> Sync for PnmDecoder<R>

impl<R> Unpin for PnmDecoder<R>

impl<R> UnsafeUnpin for PnmDecoder<R>

impl<R> UnwindSafe for PnmDecoder<R>

impl<R: Read> ImageDecoder for PnmDecoder<R>

fn dimensions(self: &Self) -> (u32, u32)
fn color_type(self: &Self) -> ColorType
fn original_color_type(self: &Self) -> ExtendedColorType
fn read_image(self: Self, buf: &mut [u8]) -> ImageResult<()>
fn read_image_boxed(self: Box<Self>, buf: &mut [u8]) -> ImageResult<()>

impl<T> Any for PnmDecoder<R>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for PnmDecoder<R>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for PnmDecoder<R>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for PnmDecoder<R>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for PnmDecoder<R>

unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T, U> Into for PnmDecoder<R>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for PnmDecoder<R>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for PnmDecoder<R>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>