Trait luminance::texture::Dimensionable [−][src]
pub trait Dimensionable { type Size: Copy; type Offset: Copy; const ZERO_OFFSET: Self::Offset; fn dim() -> Dim; fn width(size: Self::Size) -> u32; fn x_offset(offset: Self::Offset) -> u32; fn count(size: Self::Size) -> usize; fn height(_: Self::Size) -> u32 { ... } fn depth(_: Self::Size) -> u32 { ... } fn y_offset(_: Self::Offset) -> u32 { ... } fn z_offset(_: Self::Offset) -> u32 { ... } }
Expand description
Reify a type into a Dim
.
Associated Types
Associated Constants
const ZERO_OFFSET: Self::Offset
const ZERO_OFFSET: Self::Offset
Zero offset.
Required methods
Width of the associated Dimensionable::Size
.
Provided methods
Height of the associated Dimensionable::Size
. If it doesn’t have one, set it to 1.
Depth of the associated Dimensionable::Size
. If it doesn’t have one, set it to 1.