Struct exr::block::BlockIndex
source · pub struct BlockIndex {
pub layer: usize,
pub pixel_position: Vec2<usize>,
pub pixel_size: Vec2<usize>,
pub level: Vec2<usize>,
}
Expand description
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>
Index of the top left pixel from the block within the data window.
pixel_size: Vec2<usize>
Number of pixels in this block, extending to the right and downwards. Stays the same across all resolution levels.
level: Vec2<usize>
Index of the mip or rip level in the image.
Trait Implementations§
source§impl Clone for BlockIndex
impl Clone for BlockIndex
source§fn clone(&self) -> BlockIndex
fn clone(&self) -> BlockIndex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BlockIndex
impl Debug for BlockIndex
source§impl Hash for BlockIndex
impl Hash for BlockIndex
source§impl PartialEq for BlockIndex
impl PartialEq for BlockIndex
source§fn eq(&self, other: &BlockIndex) -> bool
fn eq(&self, other: &BlockIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BlockIndex
impl Eq for BlockIndex
impl StructuralPartialEq for BlockIndex
Auto Trait Implementations§
impl Freeze for BlockIndex
impl RefUnwindSafe for BlockIndex
impl Send for BlockIndex
impl Sync for BlockIndex
impl Unpin for BlockIndex
impl UnwindSafe for BlockIndex
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