pub struct ImageAspects(/* private fields */);Expand description
A set of ImageAspect values.
Implementations§
Source§impl ImageAspects
impl ImageAspects
Sourcepub const COLOR: Self
pub const COLOR: Self
The single aspect of images with a color format, or the combined aspect of all planes of images with a multi-planar format.
Sourcepub const DEPTH: Self
pub const DEPTH: Self
The single aspect of images with a depth format, or one of the two aspects of images with a combined depth/stencil format.
Sourcepub const STENCIL: Self
pub const STENCIL: Self
The single aspect of images with a stencil format, or one of the two aspects of images with a combined depth/stencil format.
Sourcepub const METADATA: Self
pub const METADATA: Self
An aspect used with sparse memory on some implementations, to hold implementation-defined metadata of an image.
Sourcepub const PLANE_0: Self
pub const PLANE_0: Self
The first plane of an image with a multi-planar format, holding the green color component.
Sourcepub const PLANE_1: Self
pub const PLANE_1: Self
The second plane of an image with a multi-planar format, holding the blue color component if the format has three planes, and a combination of blue and red if the format has two planes.
Sourcepub const PLANE_2: Self
pub const PLANE_2: Self
The third plane of an image with a multi-planar format, holding the red color component.
Sourcepub const MEMORY_PLANE_0: Self
pub const MEMORY_PLANE_0: Self
The first memory plane of images created through the ext_image_drm_format_modifier
extension.
Sourcepub const MEMORY_PLANE_1: Self
pub const MEMORY_PLANE_1: Self
The second memory plane of images created through the ext_image_drm_format_modifier
extension.
Sourcepub const MEMORY_PLANE_2: Self
pub const MEMORY_PLANE_2: Self
The third memory plane of images created through the ext_image_drm_format_modifier
extension.
Sourcepub const MEMORY_PLANE_3: Self
pub const MEMORY_PLANE_3: Self
The fourth memory plane of images created through the ext_image_drm_format_modifier
extension.
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self and other.
Sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other are set in self.
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self and other.
Sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self without the flags set in other.
Sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self or other, but not in both.
Sourcepub fn contains_enum(self, val: ImageAspect) -> bool
pub fn contains_enum(self, val: ImageAspect) -> bool
Returns whether self contains the flag corresponding to val.
Trait Implementations§
Source§impl BitAnd for ImageAspects
impl BitAnd for ImageAspects
Source§impl BitAndAssign for ImageAspects
impl BitAndAssign for ImageAspects
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOr for ImageAspects
impl BitOr for ImageAspects
Source§impl BitOrAssign for ImageAspects
impl BitOrAssign for ImageAspects
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitXor for ImageAspects
impl BitXor for ImageAspects
Source§impl BitXorAssign for ImageAspects
impl BitXorAssign for ImageAspects
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl Clone for ImageAspects
impl Clone for ImageAspects
Source§fn clone(&self) -> ImageAspects
fn clone(&self) -> ImageAspects
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ImageAspects
impl Debug for ImageAspects
Source§impl Default for ImageAspects
impl Default for ImageAspects
Source§impl From<ImageAspect> for ImageAspects
impl From<ImageAspect> for ImageAspects
Source§fn from(val: ImageAspect) -> Self
fn from(val: ImageAspect) -> Self
Source§impl From<ImageAspectFlags> for ImageAspects
impl From<ImageAspectFlags> for ImageAspects
Source§fn from(val: ImageAspectFlags) -> Self
fn from(val: ImageAspectFlags) -> Self
Source§impl From<ImageAspects> for ImageAspectFlags
impl From<ImageAspects> for ImageAspectFlags
Source§fn from(val: ImageAspects) -> Self
fn from(val: ImageAspects) -> Self
Source§impl FromIterator<ImageAspect> for ImageAspects
impl FromIterator<ImageAspect> for ImageAspects
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ImageAspect>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ImageAspect>,
Source§impl Hash for ImageAspects
impl Hash for ImageAspects
Source§impl IntoIterator for ImageAspects
impl IntoIterator for ImageAspects
Source§type Item = ImageAspect
type Item = ImageAspect
Source§type IntoIter = Flatten<IntoIter<Option<<ImageAspects as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
type IntoIter = Flatten<IntoIter<Option<<ImageAspects as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
Source§impl PartialEq for ImageAspects
impl PartialEq for ImageAspects
Source§impl Sub for ImageAspects
impl Sub for ImageAspects
Source§impl SubAssign for ImageAspects
impl SubAssign for ImageAspects
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read more