[−][src]Struct luminance_front::texture::Dim2
2D dimension.
Trait Implementations
impl Clone for Dim2[src]
impl Copy for Dim2[src]
impl Debug for Dim2[src]
impl Dimensionable for Dim2[src]
type Offset = [u32; 2]
Offset type of a dimension (used to caracterize addition and subtraction of sizes, mostly).
type Size = [u32; 2]
Size type of a dimension (used to caracterize dimensions’ areas).
const ZERO_OFFSET: <Dim2 as Dimensionable>::Offset[src]
fn dim() -> Dim[src]
fn width(size: <Dim2 as Dimensionable>::Size) -> u32[src]
fn height(size: <Dim2 as Dimensionable>::Size) -> u32[src]
fn x_offset(off: <Dim2 as Dimensionable>::Offset) -> u32[src]
fn y_offset(off: <Dim2 as Dimensionable>::Offset) -> u32[src]
fn count(<Dim2 as Dimensionable>::Size) -> usize[src]
fn depth(Self::Size) -> u32[src]
fn z_offset(Self::Offset) -> u32[src]
Auto Trait Implementations
impl RefUnwindSafe for Dim2
impl Send for Dim2
impl Sync for Dim2
impl Unpin for Dim2
impl UnwindSafe for Dim2
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,
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.
fn to_owned(&self) -> T[src]
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.
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>,