[][src]Struct exr::image::BlockIndex

pub struct BlockIndex {
    pub layer: usize,
    pub pixel_position: Vec2<usize>,
    pub pixel_size: Vec2<usize>,
    pub level: Vec2<usize>,
}

Specifies where a block of pixel data should be placed in the actual image. This is a globally unique identifier which includes the layer, level index, and pixel location.

Fields

layer: usize

Index of the layer.

pixel_position: Vec2<usize>

Pixel position of the bottom left corner of the block.

pixel_size: Vec2<usize>

Pixel size of the block.

level: Vec2<usize>

Index of the mip or rip level in the image.

Methods

impl BlockIndex[src]

#[must_use] pub fn line_indices(
    &self,
    header: &Header
) -> impl Iterator<Item = (Range<usize>, LineIndex)>
[src]

Iterates the lines of this block index in interleaved fashion: For each line in this block, this iterator steps once through each channel. This is how lines are stored in a pixel data block.

Does not check whether self.layer_index, self.level, self.size and self.position are valid indices.__

Trait Implementations

impl Clone for BlockIndex[src]

impl Copy for BlockIndex[src]

impl Debug for BlockIndex[src]

impl Eq for BlockIndex[src]

impl Hash for BlockIndex[src]

impl PartialEq<BlockIndex> for BlockIndex[src]

impl StructuralEq for BlockIndex[src]

impl StructuralPartialEq for BlockIndex[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.