Struct vulkano::image::SampleCounts
source · pub struct SampleCounts(/* private fields */);
Expand description
A set of SampleCount
values.
Implementations§
source§impl SampleCounts
impl SampleCounts
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a SampleCounts
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 that are set in self
or other
, but not in both.
sourcepub fn contains_enum(self, val: SampleCount) -> bool
pub fn contains_enum(self, val: SampleCount) -> bool
Returns whether self
contains the flag corresponding to val
.
source§impl SampleCounts
impl SampleCounts
sourcepub const fn max_count(self) -> SampleCount
pub const fn max_count(self) -> SampleCount
Returns the maximum sample count in self
.
Trait Implementations§
source§impl BitAnd for SampleCounts
impl BitAnd for SampleCounts
source§impl BitAndAssign for SampleCounts
impl BitAndAssign for SampleCounts
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for SampleCounts
impl BitOr for SampleCounts
source§impl BitOrAssign for SampleCounts
impl BitOrAssign for SampleCounts
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for SampleCounts
impl BitXor for SampleCounts
source§impl BitXorAssign for SampleCounts
impl BitXorAssign for SampleCounts
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for SampleCounts
impl Clone for SampleCounts
source§fn clone(&self) -> SampleCounts
fn clone(&self) -> SampleCounts
Returns a copy 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 SampleCounts
impl Debug for SampleCounts
source§impl Default for SampleCounts
impl Default for SampleCounts
source§impl From<SampleCount> for SampleCounts
impl From<SampleCount> for SampleCounts
source§fn from(val: SampleCount) -> Self
fn from(val: SampleCount) -> Self
Converts to this type from the input type.
source§impl From<SampleCountFlags> for SampleCounts
impl From<SampleCountFlags> for SampleCounts
source§fn from(val: SampleCountFlags) -> Self
fn from(val: SampleCountFlags) -> Self
Converts to this type from the input type.
source§impl From<SampleCounts> for SampleCountFlags
impl From<SampleCounts> for SampleCountFlags
source§fn from(val: SampleCounts) -> Self
fn from(val: SampleCounts) -> Self
Converts to this type from the input type.
source§impl FromIterator<SampleCount> for SampleCounts
impl FromIterator<SampleCount> for SampleCounts
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = SampleCount>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = SampleCount>,
Creates a value from an iterator. Read more
source§impl Hash for SampleCounts
impl Hash for SampleCounts
source§impl IntoIterator for SampleCounts
impl IntoIterator for SampleCounts
§type Item = SampleCount
type Item = SampleCount
The type of the elements being iterated over.
§type IntoIter = Flatten<IntoIter<Option<<SampleCounts as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
type IntoIter = Flatten<IntoIter<Option<<SampleCounts as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
Which kind of iterator are we turning this into?
source§impl PartialEq for SampleCounts
impl PartialEq for SampleCounts
source§fn eq(&self, other: &SampleCounts) -> bool
fn eq(&self, other: &SampleCounts) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for SampleCounts
impl Sub for SampleCounts
source§impl SubAssign for SampleCounts
impl SubAssign for SampleCounts
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for SampleCounts
impl Eq for SampleCounts
impl StructuralEq for SampleCounts
impl StructuralPartialEq for SampleCounts
Auto Trait Implementations§
impl RefUnwindSafe for SampleCounts
impl Send for SampleCounts
impl Sync for SampleCounts
impl Unpin for SampleCounts
impl UnwindSafe for SampleCounts
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