Struct DdsDecoder

pub struct DdsDecoder<R: Read> { /* private fields */ }

The representation of a DDS decoder

Implementations

impl<R: Read> DdsDecoder<R>

fn new(r: R) -> ImageResult<Self>

Create a new decoder that decodes from the stream r

Trait Implementations

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

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

Auto Trait Implementations

impl<R> Freeze for DdsDecoder<R> where DxtDecoder<R>: Freeze,

impl<R> RefUnwindSafe for DdsDecoder<R> where DxtDecoder<R>: RefUnwindSafe,

impl<R> Send for DdsDecoder<R> where DxtDecoder<R>: Send,

impl<R> Sync for DdsDecoder<R> where DxtDecoder<R>: Sync,

impl<R> Unpin for DdsDecoder<R> where DxtDecoder<R>: Unpin,

impl<R> UnsafeUnpin for DdsDecoder<R> where DxtDecoder<R>: UnsafeUnpin,

impl<R> UnwindSafe for DdsDecoder<R> where DxtDecoder<R>: UnwindSafe,

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DdsDecoder<R> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DdsDecoder<R> where ST: ?Sized, DT: ?Sized,

impl<T> Any for DdsDecoder<R> where T: 'static + ?Sized,

impl<T> Borrow<T> for DdsDecoder<R> where T: ?Sized,

impl<T> BorrowMut<T> for DdsDecoder<R> where T: ?Sized,

impl<T> From<T> for DdsDecoder<R>

impl<T> IntoEither for DdsDecoder<R>

impl<T> Pointable for DdsDecoder<R>

impl<T> Read<Exclusive, BecauseExclusive> for DdsDecoder<R> where T: ?Sized,

impl<T, U> Into<U> for DdsDecoder<R> where U: From<T>,

impl<T, U> TryFrom<U> for DdsDecoder<R> where U: Into<T>,

impl<T, U> TryInto<U> for DdsDecoder<R> where U: TryFrom<T>,