Struct luminance::texture::Dim2
[−]
[src]
pub struct Dim2;
2D dimension.
Trait Implementations
impl Clone for Dim2
[src]
fn clone(&self) -> Dim2
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Dim2
[src]
impl Debug for Dim2
[src]
impl Dimensionable for Dim2
[src]
type Size = [u32; 2]
type Offset = [u32; 2]
fn dim() -> Dim
[src]
Dimension.
fn width(size: Self::Size) -> u32
[src]
Width of the associated Size
.
fn height(size: Self::Size) -> u32
[src]
Height of the associated Size
. If it doesn’t have one, set it to 1.
fn x_offset(off: Self::Offset) -> u32
[src]
X offset.
fn y_offset(off: Self::Offset) -> u32
[src]
Y offset. If it doesn’t have one, set it to 0.
fn zero_offset() -> Self::Offset
[src]
Zero offset.
fn depth(_: Self::Size) -> u32 where
Self::Size: Copy,
[src]
Self::Size: Copy,
Depth of the associated Size
. If it doesn’t have one, set it to 1.
fn z_offset(_: Self::Offset) -> u32 where
Self::Offset: Copy,
[src]
Self::Offset: Copy,
Z offset. If it doesn’t have one, set it to 0.