#[non_exhaustive]
#[repr(i32)]
pub enum ImageViewType {
Dim1d,
Dim2d,
Dim3d,
Cube,
Dim1dArray,
Dim2dArray,
CubeArray,
}
Expand description
The geometry type of an image view.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dim1d
Dim2d
Dim3d
Cube
Dim1dArray
Dim2dArray
CubeArray
Implementations
sourceimpl ImageViewType
impl ImageViewType
sourcepub fn is_arrayed(&self) -> bool
pub fn is_arrayed(&self) -> bool
Returns whether the type is arrayed.
sourcepub fn is_compatible_with(&self, image_type: ImageType) -> bool
pub fn is_compatible_with(&self, image_type: ImageType) -> bool
Returns whether self
is compatible with the given image_type
.
Trait Implementations
sourceimpl Clone for ImageViewType
impl Clone for ImageViewType
sourcefn clone(&self) -> ImageViewType
fn clone(&self) -> ImageViewType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ImageViewType
impl Debug for ImageViewType
sourceimpl From<ImageViewType> for ImageViewType
impl From<ImageViewType> for ImageViewType
sourcefn from(val: ImageViewType) -> Self
fn from(val: ImageViewType) -> Self
Converts to this type from the input type.
sourceimpl Hash for ImageViewType
impl Hash for ImageViewType
sourceimpl PartialEq<ImageViewType> for ImageViewType
impl PartialEq<ImageViewType> for ImageViewType
sourcefn eq(&self, other: &ImageViewType) -> bool
fn eq(&self, other: &ImageViewType) -> bool
sourceimpl TryFrom<ImageViewType> for ImageViewType
impl TryFrom<ImageViewType> for ImageViewType
impl Copy for ImageViewType
impl Eq for ImageViewType
impl StructuralEq for ImageViewType
impl StructuralPartialEq for ImageViewType
Auto Trait Implementations
impl RefUnwindSafe for ImageViewType
impl Send for ImageViewType
impl Sync for ImageViewType
impl Unpin for ImageViewType
impl UnwindSafe for ImageViewType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more