#[non_exhaustive]pub enum RandomAccess {
Sequential,
Rows,
Strips {
rows: u32,
},
Tiles {
width: u32,
height: u32,
},
Blocks,
}Expand description
How the payload can be accessed independently.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sequential
A single sequential stream; any region requires decoding from the start.
Rows
Independent rows (e.g. uncompressed / packed data): any region is directly addressable.
Strips
Independent strips of rows rows.
Tiles
Independent tiles.
Blocks
Independent vertical slices/blocks of varying geometry.
Trait Implementations§
Source§impl Clone for RandomAccess
impl Clone for RandomAccess
impl Copy for RandomAccess
Source§impl Debug for RandomAccess
impl Debug for RandomAccess
impl Eq for RandomAccess
Source§impl PartialEq for RandomAccess
impl PartialEq for RandomAccess
impl StructuralPartialEq for RandomAccess
Auto Trait Implementations§
impl Freeze for RandomAccess
impl RefUnwindSafe for RandomAccess
impl Send for RandomAccess
impl Sync for RandomAccess
impl Unpin for RandomAccess
impl UnsafeUnpin for RandomAccess
impl UnwindSafe for RandomAccess
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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