Struct exr::block::BlockIndex [−][src]
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 bottom left pixel from the block within the data window.
pixel_size: Vec2<usize>
Number of pixels in this block. Stays the same across all resolution levels.
level: Vec2<usize>
Index of the mip or rip level in the image.
Trait Implementations
impl Clone for BlockIndex
[src]
impl Clone for BlockIndex
[src]fn clone(&self) -> BlockIndex
[src]
fn clone(&self) -> BlockIndex
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for BlockIndex
[src]
impl Debug for BlockIndex
[src]impl Hash for BlockIndex
[src]
impl Hash for BlockIndex
[src]impl PartialEq<BlockIndex> for BlockIndex
[src]
impl PartialEq<BlockIndex> for BlockIndex
[src]fn eq(&self, other: &BlockIndex) -> bool
[src]
fn eq(&self, other: &BlockIndex) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &BlockIndex) -> bool
[src]
fn ne(&self, other: &BlockIndex) -> bool
[src]This method tests for !=
.
impl Copy for BlockIndex
[src]
impl Eq for BlockIndex
[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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more