#[repr(i32)]
pub enum ImageViewType {
Dim1d,
Dim1dArray,
Dim2d,
Dim2dArray,
Dim3d,
Cube,
CubeArray,
}
Expand description
The geometry type of an image view.
Variants
Dim1d
Dim1dArray
Dim2d
Dim2dArray
Dim3d
Cube
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 more
sourceimpl 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
Performs the conversion.
sourceimpl PartialEq<ImageViewType> for ImageViewType
impl PartialEq<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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more