[−][src]Struct luminance::texture::Dim2Array
2D dimension.
Trait Implementations
impl Clone for Dim2Array
[src]
impl Copy for Dim2Array
[src]
impl Debug for Dim2Array
[src]
impl Dimensionable for Dim2Array
[src]
type Offset = ([u32; 2], u32)
Offset type of a dimension (used to caracterize addition and subtraction of sizes, mostly).
type Size = ([u32; 2], u32)
Size type of a dimension (used to caracterize dimensions’ areas).
pub const ZERO_OFFSET: Self::Offset
[src]
pub fn dim() -> Dim
[src]
pub fn width(size: Self::Size) -> u32
[src]
pub fn height(size: Self::Size) -> u32
[src]
pub fn depth(size: Self::Size) -> u32
[src]
pub fn x_offset(off: Self::Offset) -> u32
[src]
pub fn y_offset(off: Self::Offset) -> u32
[src]
pub fn z_offset(off: Self::Offset) -> u32
[src]
pub fn count(([width, height], layer): Self::Size) -> usize
[src]
Auto Trait Implementations
impl RefUnwindSafe for Dim2Array
[src]
impl Send for Dim2Array
[src]
impl Sync for Dim2Array
[src]
impl Unpin for Dim2Array
[src]
impl UnwindSafe for Dim2Array
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,