Struct vulkano::image::ImageAspects
source · pub struct ImageAspects {
pub color: bool,
pub depth: bool,
pub stencil: bool,
pub metadata: bool,
pub plane0: bool,
pub plane1: bool,
pub plane2: bool,
pub memory_plane0: bool,
pub memory_plane1: bool,
pub memory_plane2: bool,
pub _ne: NonExhaustive,
}
Expand description
A mask specifying one or more ImageAspect
s.
Fields
color: bool
depth: bool
stencil: bool
metadata: bool
plane0: bool
plane1: bool
plane2: bool
memory_plane0: bool
memory_plane1: bool
memory_plane2: bool
_ne: NonExhaustive
Implementations
sourceimpl ImageAspects
impl ImageAspects
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns a ImageAspects
with none of the flags set.
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 set in self
or other
, but not both.
sourceimpl ImageAspects
impl ImageAspects
pub fn iter(&self) -> impl Iterator<Item = ImageAspect>
Trait Implementations
sourceimpl BitAnd<ImageAspects> for ImageAspects
impl BitAnd<ImageAspects> for ImageAspects
type Output = ImageAspects
type Output = ImageAspects
The resulting type after applying the
&
operator.sourceimpl BitAndAssign<ImageAspects> for ImageAspects
impl BitAndAssign<ImageAspects> for ImageAspects
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresourceimpl BitOr<ImageAspects> for ImageAspects
impl BitOr<ImageAspects> for ImageAspects
type Output = ImageAspects
type Output = ImageAspects
The resulting type after applying the
|
operator.sourceimpl BitOrAssign<ImageAspects> for ImageAspects
impl BitOrAssign<ImageAspects> for ImageAspects
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresourceimpl BitXor<ImageAspects> for ImageAspects
impl BitXor<ImageAspects> for ImageAspects
type Output = ImageAspects
type Output = ImageAspects
The resulting type after applying the
^
operator.sourceimpl BitXorAssign<ImageAspects> for ImageAspects
impl BitXorAssign<ImageAspects> for ImageAspects
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresourceimpl Clone for ImageAspects
impl Clone for ImageAspects
sourcefn clone(&self) -> ImageAspects
fn clone(&self) -> ImageAspects
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 ImageAspects
impl Debug for ImageAspects
sourceimpl Default for ImageAspects
impl Default for ImageAspects
sourceimpl From<ImageAspect> for ImageAspects
impl From<ImageAspect> for ImageAspects
sourcefn from(aspect: ImageAspect) -> Self
fn from(aspect: ImageAspect) -> Self
Converts to this type from the input type.
sourceimpl From<ImageAspectFlags> for ImageAspects
impl From<ImageAspectFlags> for ImageAspects
sourcefn from(val: ImageAspectFlags) -> Self
fn from(val: ImageAspectFlags) -> Self
Converts to this type from the input type.
sourceimpl From<ImageAspects> for ImageAspectFlags
impl From<ImageAspects> for ImageAspectFlags
sourcefn from(val: ImageAspects) -> Self
fn from(val: ImageAspects) -> Self
Converts to this type from the input type.
sourceimpl FromIterator<ImageAspect> for ImageAspects
impl FromIterator<ImageAspect> for ImageAspects
sourcefn from_iter<T: IntoIterator<Item = ImageAspect>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = ImageAspect>>(iter: T) -> Self
Creates a value from an iterator. Read more
sourceimpl Hash for ImageAspects
impl Hash for ImageAspects
sourceimpl PartialEq<ImageAspects> for ImageAspects
impl PartialEq<ImageAspects> for ImageAspects
sourcefn eq(&self, other: &ImageAspects) -> bool
fn eq(&self, other: &ImageAspects) -> bool
sourceimpl Sub<ImageAspects> for ImageAspects
impl Sub<ImageAspects> for ImageAspects
type Output = ImageAspects
type Output = ImageAspects
The resulting type after applying the
-
operator.sourceimpl SubAssign<ImageAspects> for ImageAspects
impl SubAssign<ImageAspects> for ImageAspects
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for ImageAspects
impl Eq for ImageAspects
impl StructuralEq for ImageAspects
impl StructuralPartialEq for ImageAspects
Auto Trait Implementations
impl RefUnwindSafe for ImageAspects
impl Send for ImageAspects
impl Sync for ImageAspects
impl Unpin for ImageAspects
impl UnwindSafe for ImageAspects
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