pub struct ImageUsageFlags { /* private fields */ }Implementations§
Source§impl ImageUsageFlags
impl ImageUsageFlags
pub const FLAG_BITS_MAX_ENUM: ImageUsageFlags
pub const TRANSFER_SRC: ImageUsageFlags
pub const TRANSFER_DST: ImageUsageFlags
pub const SAMPLED: ImageUsageFlags
pub const STORAGE: ImageUsageFlags
pub const COLOR_ATTACHMENT: ImageUsageFlags
pub const DEPTH_STENCIL_ATTACHMENT: ImageUsageFlags
pub const TRANSIENT_ATTACHMENT: ImageUsageFlags
pub const INPUT_ATTACHMENT: ImageUsageFlags
Sourcepub fn empty() -> ImageUsageFlags
pub fn empty() -> ImageUsageFlags
Returns an empty set of flags.
Sourcepub fn all() -> ImageUsageFlags
pub fn all() -> ImageUsageFlags
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<ImageUsageFlags>
pub fn from_bits(bits: u32) -> Option<ImageUsageFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub fn from_bits_truncate(bits: u32) -> ImageUsageFlags
pub fn from_bits_truncate(bits: u32) -> ImageUsageFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub fn intersects(&self, other: ImageUsageFlags) -> bool
pub fn intersects(&self, other: ImageUsageFlags) -> bool
Returns true if there are flags common to both self and other.
Sourcepub fn contains(&self, other: ImageUsageFlags) -> bool
pub fn contains(&self, other: ImageUsageFlags) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: ImageUsageFlags)
pub fn insert(&mut self, other: ImageUsageFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: ImageUsageFlags)
pub fn remove(&mut self, other: ImageUsageFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: ImageUsageFlags)
pub fn toggle(&mut self, other: ImageUsageFlags)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: ImageUsageFlags, value: bool)
pub fn set(&mut self, other: ImageUsageFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for ImageUsageFlags
impl Binary for ImageUsageFlags
Source§impl BitAnd for ImageUsageFlags
impl BitAnd for ImageUsageFlags
Source§fn bitand(self, other: ImageUsageFlags) -> ImageUsageFlags
fn bitand(self, other: ImageUsageFlags) -> ImageUsageFlags
Returns the intersection between the two sets of flags.
Source§type Output = ImageUsageFlags
type Output = ImageUsageFlags
& operator.Source§impl BitAndAssign for ImageUsageFlags
impl BitAndAssign for ImageUsageFlags
Source§fn bitand_assign(&mut self, other: ImageUsageFlags)
fn bitand_assign(&mut self, other: ImageUsageFlags)
Disables all flags disabled in the set.
Source§impl BitOr for ImageUsageFlags
impl BitOr for ImageUsageFlags
Source§fn bitor(self, other: ImageUsageFlags) -> ImageUsageFlags
fn bitor(self, other: ImageUsageFlags) -> ImageUsageFlags
Returns the union of the two sets of flags.
Source§type Output = ImageUsageFlags
type Output = ImageUsageFlags
| operator.Source§impl BitOrAssign for ImageUsageFlags
impl BitOrAssign for ImageUsageFlags
Source§fn bitor_assign(&mut self, other: ImageUsageFlags)
fn bitor_assign(&mut self, other: ImageUsageFlags)
Adds the set of flags.
Source§impl BitXor for ImageUsageFlags
impl BitXor for ImageUsageFlags
Source§fn bitxor(self, other: ImageUsageFlags) -> ImageUsageFlags
fn bitxor(self, other: ImageUsageFlags) -> ImageUsageFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = ImageUsageFlags
type Output = ImageUsageFlags
^ operator.Source§impl BitXorAssign for ImageUsageFlags
impl BitXorAssign for ImageUsageFlags
Source§fn bitxor_assign(&mut self, other: ImageUsageFlags)
fn bitxor_assign(&mut self, other: ImageUsageFlags)
Toggles the set of flags.
Source§impl Clone for ImageUsageFlags
impl Clone for ImageUsageFlags
Source§fn clone(&self) -> ImageUsageFlags
fn clone(&self) -> ImageUsageFlags
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ImageUsageFlags
Source§impl Debug for ImageUsageFlags
impl Debug for ImageUsageFlags
Source§impl Default for ImageUsageFlags
impl Default for ImageUsageFlags
Source§fn default() -> ImageUsageFlags
fn default() -> ImageUsageFlags
impl Eq for ImageUsageFlags
Source§impl Extend<ImageUsageFlags> for ImageUsageFlags
impl Extend<ImageUsageFlags> for ImageUsageFlags
Source§fn extend<T: IntoIterator<Item = ImageUsageFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ImageUsageFlags>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl FromIterator<ImageUsageFlags> for ImageUsageFlags
impl FromIterator<ImageUsageFlags> for ImageUsageFlags
Source§fn from_iter<T: IntoIterator<Item = ImageUsageFlags>>(
iterator: T,
) -> ImageUsageFlags
fn from_iter<T: IntoIterator<Item = ImageUsageFlags>>( iterator: T, ) -> ImageUsageFlags
Source§impl Hash for ImageUsageFlags
impl Hash for ImageUsageFlags
Source§impl LowerHex for ImageUsageFlags
impl LowerHex for ImageUsageFlags
Source§impl Not for ImageUsageFlags
impl Not for ImageUsageFlags
Source§fn not(self) -> ImageUsageFlags
fn not(self) -> ImageUsageFlags
Returns the complement of this set of flags.
Source§type Output = ImageUsageFlags
type Output = ImageUsageFlags
! operator.Source§impl Octal for ImageUsageFlags
impl Octal for ImageUsageFlags
Source§impl Ord for ImageUsageFlags
impl Ord for ImageUsageFlags
Source§fn cmp(&self, other: &ImageUsageFlags) -> Ordering
fn cmp(&self, other: &ImageUsageFlags) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ImageUsageFlags
impl PartialEq for ImageUsageFlags
Source§fn eq(&self, other: &ImageUsageFlags) -> bool
fn eq(&self, other: &ImageUsageFlags) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ImageUsageFlags
impl PartialOrd for ImageUsageFlags
impl StructuralPartialEq for ImageUsageFlags
Source§impl Sub for ImageUsageFlags
impl Sub for ImageUsageFlags
Source§fn sub(self, other: ImageUsageFlags) -> ImageUsageFlags
fn sub(self, other: ImageUsageFlags) -> ImageUsageFlags
Returns the set difference of the two sets of flags.
Source§type Output = ImageUsageFlags
type Output = ImageUsageFlags
- operator.Source§impl SubAssign for ImageUsageFlags
impl SubAssign for ImageUsageFlags
Source§fn sub_assign(&mut self, other: ImageUsageFlags)
fn sub_assign(&mut self, other: ImageUsageFlags)
Disables all flags enabled in the set.