Struct luminance::texture::Dim1 [−][src]
pub struct Dim1;
1D dimension.
Trait Implementations
impl Clone for Dim1
[src]
impl Clone for Dim1
fn clone(&self) -> Dim1
[src]
fn clone(&self) -> Dim1
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 Copy for Dim1
[src]
impl Copy for Dim1
impl Debug for Dim1
[src]
impl Debug for Dim1
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Dimensionable for Dim1
[src]
impl Dimensionable for Dim1
type Size = u32
type Offset = u32
fn dim() -> Dim
[src]
fn dim() -> Dim
Dimension.
fn width(w: Self::Size) -> u32
[src]
fn width(w: Self::Size) -> u32
Width of the associated Size
.
fn x_offset(off: Self::Offset) -> u32
[src]
fn x_offset(off: Self::Offset) -> u32
X offset.
fn zero_offset() -> Self::Offset
[src]
fn zero_offset() -> Self::Offset
Zero offset.
fn height(_: Self::Size) -> u32
[src]
fn height(_: Self::Size) -> u32
Height of the associated Size
. If it doesn’t have one, set it to 1.
fn depth(_: Self::Size) -> u32
[src]
fn depth(_: Self::Size) -> u32
Depth of the associated Size
. If it doesn’t have one, set it to 1.
fn y_offset(_: Self::Offset) -> u32
[src]
fn y_offset(_: Self::Offset) -> u32
Y offset. If it doesn’t have one, set it to 0.
fn z_offset(_: Self::Offset) -> u32
[src]
fn z_offset(_: Self::Offset) -> u32
Z offset. If it doesn’t have one, set it to 0.