Enum tiff::decoder::DecodingResult
source · pub enum DecodingResult {
U8(Vec<u8>),
U16(Vec<u16>),
U32(Vec<u32>),
U64(Vec<u64>),
F32(Vec<f32>),
F64(Vec<f64>),
I8(Vec<i8>),
I16(Vec<i16>),
I32(Vec<i32>),
I64(Vec<i64>),
}
Expand description
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
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§
source§impl DecodingResult
impl DecodingResult
fn new_u8(size: usize, limits: &Limits) -> TiffResult<DecodingResult>
fn new_u16(size: usize, limits: &Limits) -> TiffResult<DecodingResult>
fn new_u32(size: usize, limits: &Limits) -> TiffResult<DecodingResult>
fn new_u64(size: usize, limits: &Limits) -> TiffResult<DecodingResult>
fn new_f32(size: usize, limits: &Limits) -> TiffResult<DecodingResult>
fn new_f64(size: usize, limits: &Limits) -> TiffResult<DecodingResult>
fn new_i8(size: usize, limits: &Limits) -> TiffResult<DecodingResult>
fn new_i16(size: usize, limits: &Limits) -> TiffResult<DecodingResult>
fn new_i32(size: usize, limits: &Limits) -> TiffResult<DecodingResult>
fn new_i64(size: usize, limits: &Limits) -> TiffResult<DecodingResult>
pub fn as_buffer(&mut self, start: usize) -> DecodingBuffer<'_>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DecodingResult
impl RefUnwindSafe for DecodingResult
impl Send for DecodingResult
impl Sync for DecodingResult
impl Unpin for DecodingResult
impl UnwindSafe for DecodingResult
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more