[−][src]Struct exr::image::BlockIndex
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]
&self,
header: &Header
) -> impl Iterator<Item = (Range<usize>, LineIndex)>
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]
fn clone(&self) -> BlockIndex
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for BlockIndex
[src]
impl Debug for BlockIndex
[src]
impl Eq for BlockIndex
[src]
impl Hash for BlockIndex
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<BlockIndex> for BlockIndex
[src]
fn eq(&self, other: &BlockIndex) -> bool
[src]
fn ne(&self, other: &BlockIndex) -> bool
[src]
impl StructuralEq for BlockIndex
[src]
impl StructuralPartialEq for BlockIndex
[src]
Auto Trait Implementations
impl RefUnwindSafe for BlockIndex
impl Send for BlockIndex
impl Sync for BlockIndex
impl Unpin for BlockIndex
impl UnwindSafe for BlockIndex
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Wfn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut W
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,