Trait luminance::texture::Dimensionable[][src]

pub trait Dimensionable {
    type Size: Copy;
    type Offset: Copy;
    fn dim() -> Dim;
fn width(size: Self::Size) -> u32;
fn x_offset(offset: Self::Offset) -> u32;
fn zero_offset() -> Self::Offset; fn height(_: Self::Size) -> u32 { ... }
fn depth(_: Self::Size) -> u32 { ... }
fn y_offset(_: Self::Offset) -> u32 { ... }
fn z_offset(_: Self::Offset) -> u32 { ... } }

Reify a type into a Dim.

Associated Types

Required Methods

Dimension.

Width of the associated Size.

X offset.

Zero offset.

Provided Methods

Height of the associated Size. If it doesn’t have one, set it to 1.

Depth of the associated Size. If it doesn’t have one, set it to 1.

Y offset. If it doesn’t have one, set it to 0.

Z offset. If it doesn’t have one, set it to 0.

Implementors