Struct gfx_hal::memory::SparseFlags [−][src]
pub struct SparseFlags { /* fields omitted */ }
Sparse flags for creating images and buffers.
Implementations
impl SparseFlags
[src]
impl SparseFlags
[src]pub const SPARSE_BINDING: SparseFlags
[src]
Specifies the view will be backed using sparse memory binding.
pub const SPARSE_RESIDENCY: SparseFlags
[src]
Specifies the view can be partially backed with sparse memory binding.
Must have SPARSE_BINDING
enabled.
pub const SPARSE_ALIASED: SparseFlags
[src]
Specifies the view will be backed using sparse memory binding with memory bindings that
might alias other data. Must have SPARSE_BINDING
enabled.
pub const fn empty() -> SparseFlags
[src]
Returns an empty set of flags
pub const fn all() -> SparseFlags
[src]
Returns the set containing all flags.
pub const fn bits(&self) -> u32
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<SparseFlags>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u32) -> SparseFlags
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> SparseFlags
[src]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: SparseFlags) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: SparseFlags) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: SparseFlags)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: SparseFlags)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: SparseFlags)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: SparseFlags, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl BitAnd<SparseFlags> for SparseFlags
[src]
impl BitAnd<SparseFlags> for SparseFlags
[src]type Output = SparseFlags
The resulting type after applying the &
operator.
fn bitand(self, other: SparseFlags) -> SparseFlags
[src]
Returns the intersection between the two sets of flags.
impl BitAndAssign<SparseFlags> for SparseFlags
[src]
impl BitAndAssign<SparseFlags> for SparseFlags
[src]fn bitand_assign(&mut self, other: SparseFlags)
[src]
Disables all flags disabled in the set.
impl BitOr<SparseFlags> for SparseFlags
[src]
impl BitOr<SparseFlags> for SparseFlags
[src]type Output = SparseFlags
The resulting type after applying the |
operator.
fn bitor(self, other: SparseFlags) -> SparseFlags
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<SparseFlags> for SparseFlags
[src]
impl BitOrAssign<SparseFlags> for SparseFlags
[src]fn bitor_assign(&mut self, other: SparseFlags)
[src]
Adds the set of flags.
impl BitXor<SparseFlags> for SparseFlags
[src]
impl BitXor<SparseFlags> for SparseFlags
[src]type Output = SparseFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: SparseFlags) -> SparseFlags
[src]
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign<SparseFlags> for SparseFlags
[src]
impl BitXorAssign<SparseFlags> for SparseFlags
[src]fn bitxor_assign(&mut self, other: SparseFlags)
[src]
Toggles the set of flags.
impl Clone for SparseFlags
[src]
impl Clone for SparseFlags
[src]fn clone(&self) -> SparseFlags
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SparseFlags
[src]
impl Copy for SparseFlags
[src]impl Eq for SparseFlags
[src]
impl Eq for SparseFlags
[src]impl Extend<SparseFlags> for SparseFlags
[src]
impl Extend<SparseFlags> for SparseFlags
[src]fn extend<T: IntoIterator<Item = SparseFlags>>(&mut self, iterator: T)
[src]
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<SparseFlags> for SparseFlags
[src]
impl FromIterator<SparseFlags> for SparseFlags
[src]fn from_iter<T: IntoIterator<Item = SparseFlags>>(iterator: T) -> SparseFlags
[src]
impl Hash for SparseFlags
[src]
impl Hash for SparseFlags
[src]impl Not for SparseFlags
[src]
impl Not for SparseFlags
[src]type Output = SparseFlags
The resulting type after applying the !
operator.
fn not(self) -> SparseFlags
[src]
Returns the complement of this set of flags.
impl Ord for SparseFlags
[src]
impl Ord for SparseFlags
[src]impl PartialEq<SparseFlags> for SparseFlags
[src]
impl PartialEq<SparseFlags> for SparseFlags
[src]fn eq(&self, other: &SparseFlags) -> bool
[src]
fn ne(&self, other: &SparseFlags) -> bool
[src]
impl PartialOrd<SparseFlags> for SparseFlags
[src]
impl PartialOrd<SparseFlags> for SparseFlags
[src]impl StructuralEq for SparseFlags
[src]
impl StructuralEq for SparseFlags
[src]impl StructuralPartialEq for SparseFlags
[src]
impl StructuralPartialEq for SparseFlags
[src]impl Sub<SparseFlags> for SparseFlags
[src]
impl Sub<SparseFlags> for SparseFlags
[src]type Output = SparseFlags
The resulting type after applying the -
operator.
fn sub(self, other: SparseFlags) -> SparseFlags
[src]
Returns the set difference of the two sets of flags.
impl SubAssign<SparseFlags> for SparseFlags
[src]
impl SubAssign<SparseFlags> for SparseFlags
[src]fn sub_assign(&mut self, other: SparseFlags)
[src]
Disables all flags enabled in the set.
Auto Trait Implementations
impl RefUnwindSafe for SparseFlags
impl RefUnwindSafe for SparseFlags
impl Send for SparseFlags
impl Send for SparseFlags
impl Sync for SparseFlags
impl Sync for SparseFlags
impl Unpin for SparseFlags
impl Unpin for SparseFlags
impl UnwindSafe for SparseFlags
impl UnwindSafe for SparseFlags