Enum DecodingResult

pub enum DecodingResult

Result of a decoding process

Variants

U8(Vec<u8>)

A vector of unsigned bytes

U16(Vec<u16>)

A vector of unsigned words

U32(Vec<u32>)

A vector of 32 bit unsigned ints

U64(Vec<u64>)

A vector of 64 bit unsigned ints

F16(Vec<f16>)

A vector of 16 bit IEEE floats (held in u16)

F32(Vec<f32>)

A vector of 32 bit IEEE floats

F64(Vec<f64>)

A vector of 64 bit IEEE floats

I8(Vec<i8>)

A vector of 8 bit signed ints

I16(Vec<i16>)

A vector of 16 bit signed ints

I32(Vec<i32>)

A vector of 32 bit signed ints

I64(Vec<i64>)

A vector of 64 bit signed ints

Implementations

impl DecodingResult

fn resize_to(&mut self, buffer: &BufferLayoutPreference, limits: &Limits) -> Result<(), TiffError>

Reallocate the buffer to decode all planes of the indicated layout.

fn as_buffer(&mut self, start: usize) -> DecodingBuffer<'_>

Get a view of this buffer starting from the nth sample of the current type.

Trait Implementations

impl Debug for DecodingResult

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl Freeze for DecodingResult

impl RefUnwindSafe for DecodingResult

impl Send for DecodingResult

impl Sync for DecodingResult

impl Unpin for DecodingResult

impl UnsafeUnpin for DecodingResult

impl UnwindSafe for DecodingResult

Blanket Implementations

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

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

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for DecodingResult where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for DecodingResult where T: ?Sized,

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

impl<T> From<T> for DecodingResult

fn from(t: T) -> T

Returns the argument unchanged.

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

impl<T, U> Into<U> for DecodingResult where U: From<T>,

fn into(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<U> for DecodingResult where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for DecodingResult where U: TryFrom<T>,

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