Enum CompressedBlock

pub enum CompressedBlock

The raw, possibly compressed pixel data of a file.

Each layer in a file can have a different type. Also contains positioning information that locates this data block in the corresponding layer. Exists inside a Chunk. The byte data is in little-endian format, as these bytes will be written into the file directly.

Variants

ScanLine(CompressedScanLineBlock)

Scan line blocks of flat data.

Tile(CompressedTileBlock)

Tiles of flat data.

DeepScanLine(CompressedDeepScanLineBlock)

Scan line blocks of deep data.

DeepTile(CompressedDeepTileBlock)

Tiles of deep data.

Trait Implementations

impl Clone for CompressedBlock

fn clone(&self) -> Self

impl Debug for CompressedBlock

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

Auto Trait Implementations

impl Freeze for CompressedBlock

impl RefUnwindSafe for CompressedBlock

impl Send for CompressedBlock

impl Sync for CompressedBlock

impl Unpin for CompressedBlock

impl UnsafeUnpin for CompressedBlock

impl UnwindSafe for CompressedBlock

Blanket Implementations

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

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

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> CloneToUninit for CompressedBlock where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for CompressedBlock

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for CompressedBlock

const ALIGN: usize = _;
type Init = T;
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

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

impl<T> ToOwned for CompressedBlock where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for CompressedBlock 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 CompressedBlock where U: Into<T>,

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

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

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