Expand description
Multidimensional size.
Implementations§
source§impl<T> Extent<2, T>where
T: ToPrimitive,
impl<T> Extent<2, T>where
T: ToPrimitive,
pub fn aspect_ratio(&self) -> f32
Trait Implementations§
source§impl PartialEq<Extent<2, u32>> for ImageExtent
impl PartialEq<Extent<2, u32>> for ImageExtent
source§impl PartialEq<Extent<3, u32>> for ImageExtent
impl PartialEq<Extent<3, u32>> for ImageExtent
source§impl<const D: usize, T: PartialEq> PartialEq<Extent<D, T>> for Extent<D, T>
impl<const D: usize, T: PartialEq> PartialEq<Extent<D, T>> for Extent<D, T>
source§impl<const D: usize, T> PartialOrd<Extent<D, T>> for Extent<D, T>where
T: PartialOrd,
impl<const D: usize, T> PartialOrd<Extent<D, T>> for Extent<D, T>where
T: PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more