pub struct Dim2Array;Expand description
2D dimension.
Trait Implementations§
Source§impl Dimensionable for Dim2Array
impl Dimensionable for Dim2Array
Source§const ZERO_OFFSET: <Dim2Array as Dimensionable>::Offset
const ZERO_OFFSET: <Dim2Array as Dimensionable>::Offset
Zero offset. Read more
Source§type Offset = ([u32; 2], u32)
type Offset = ([u32; 2], u32)
Offset type of a dimension (used to caracterize addition and subtraction of sizes, mostly).
Source§fn width(size: <Dim2Array as Dimensionable>::Size) -> u32
fn width(size: <Dim2Array as Dimensionable>::Size) -> u32
Width of the associated
Dimensionable::Size.Source§fn height(size: <Dim2Array as Dimensionable>::Size) -> u32
fn height(size: <Dim2Array as Dimensionable>::Size) -> u32
Height of the associated
Dimensionable::Size. If it doesn’t have one, set it to 1.Source§fn depth(size: <Dim2Array as Dimensionable>::Size) -> u32
fn depth(size: <Dim2Array as Dimensionable>::Size) -> u32
Depth of the associated
Dimensionable::Size. If it doesn’t have one, set it to 1.Source§fn y_offset(off: <Dim2Array as Dimensionable>::Offset) -> u32
fn y_offset(off: <Dim2Array as Dimensionable>::Offset) -> u32
Y offset. If it doesn’t have one, set it to 0.
impl Copy for Dim2Array
Auto Trait Implementations§
impl Freeze for Dim2Array
impl RefUnwindSafe for Dim2Array
impl Send for Dim2Array
impl Sync for Dim2Array
impl Unpin for Dim2Array
impl UnwindSafe for Dim2Array
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more