pub enum ImageDimension {
    D1,
    D2,
    D3,
    Cube,
}Expand description
The number of dimensions an image has.
Variants§
Trait Implementations§
Source§impl Clone for ImageDimension
 
impl Clone for ImageDimension
Source§fn clone(&self) -> ImageDimension
 
fn clone(&self) -> ImageDimension
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for ImageDimension
 
impl Debug for ImageDimension
Source§impl From<ImageDimension> for Dim
 
impl From<ImageDimension> for Dim
Source§fn from(dim: ImageDimension) -> Self
 
fn from(dim: ImageDimension) -> Self
Converts to this type from the input type.
Source§impl Hash for ImageDimension
 
impl Hash for ImageDimension
Source§impl Ord for ImageDimension
 
impl Ord for ImageDimension
Source§fn cmp(&self, other: &ImageDimension) -> Ordering
 
fn cmp(&self, other: &ImageDimension) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ImageDimension
 
impl PartialEq for ImageDimension
Source§impl PartialOrd for ImageDimension
 
impl PartialOrd for ImageDimension
Source§impl ToWgsl for ImageDimension
 
impl ToWgsl for ImageDimension
impl Copy for ImageDimension
impl Eq for ImageDimension
impl StructuralPartialEq for ImageDimension
Auto Trait Implementations§
impl Freeze for ImageDimension
impl RefUnwindSafe for ImageDimension
impl Send for ImageDimension
impl Sync for ImageDimension
impl Unpin for ImageDimension
impl UnwindSafe for ImageDimension
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.