[][src]Struct rin::graphics::image::pnm::PNMDecoder

pub struct PNMDecoder<R> { /* fields omitted */ }

PNM decoder

Methods

impl<R> PNMDecoder<R> where
    R: Read
[src]

Create a new decoder that decodes from the stream read

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

impl<R> PNMDecoder<R> where
    R: Read
[src]

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

Trait Implementations

impl<R> ImageDecoder for PNMDecoder<R> where
    R: Read
[src]

The type of reader produced by into_reader.

Returns the number of bytes in a single row of the image. All decoders will pad image rows to a byte boundary. Read more

Returns the total number of bytes in the image.

Returns the minimum number of bytes that can be efficiently read from this decoder. This may be as few as 1 or as many as total_bytes(). Read more

Same as read_image but periodically calls the provided callback to give updates on loading progress. Read more

Auto Trait Implementations

impl<R> Send for PNMDecoder<R> where
    R: Send

impl<R> Sync for PNMDecoder<R> where
    R: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.

impl<V> IntoVec for V
[src]

impl<V> IntoPnt for V
[src]

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same for T
[src]

Should always be Self