Struct exr::block::lines::LineIndex [−][src]
pub struct LineIndex { pub layer: usize, pub channel: usize, pub level: Vec2<usize>, pub position: Vec2<usize>, pub sample_count: usize, }
Expand description
Specifies where a row of pixels lies inside an image. This is a globally unique identifier which includes the layer, channel index, and pixel location.
Fields
layer: usize
Index of the layer.
channel: usize
The channel index of the layer.
level: Vec2<usize>
Index of the mip or rip level in the image.
position: Vec2<usize>
Position of the most left pixel of the row.
sample_count: usize
The width of the line; the number of samples in this row, that is, the number of f16, f32, or u32 values.
Implementations
impl LineIndex
[src]
impl LineIndex
[src]#[must_use]pub fn lines_in_block(
block: BlockIndex,
channels: &ChannelList
) -> impl Iterator<Item = (Range<usize>, LineIndex)>
[src]
#[must_use]pub fn lines_in_block(
block: BlockIndex,
channels: &ChannelList
) -> 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 Copy for LineIndex
[src]
impl Eq for LineIndex
[src]
impl StructuralEq for LineIndex
[src]
impl StructuralPartialEq for LineIndex
[src]
Auto Trait Implementations
impl RefUnwindSafe for LineIndex
impl Send for LineIndex
impl Sync for LineIndex
impl Unpin for LineIndex
impl UnwindSafe for LineIndex
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