Struct gfx_hal::memory::HeapFlags [−][src]
pub struct HeapFlags { /* fields omitted */ }
Memory heap flags.
Implementations
impl HeapFlags
[src]
impl HeapFlags
[src]pub const DEVICE_LOCAL: HeapFlags
[src]
Device local memory on the GPU.
pub const fn empty() -> HeapFlags
[src]
Returns an empty set of flags
pub const fn all() -> HeapFlags
[src]
Returns the set containing all flags.
pub const fn bits(&self) -> u16
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u16) -> Option<HeapFlags>
[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: u16) -> HeapFlags
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u16) -> HeapFlags
[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: HeapFlags) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: HeapFlags) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: HeapFlags)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: HeapFlags)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: HeapFlags)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: HeapFlags, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl BitAndAssign<HeapFlags> for HeapFlags
[src]
impl BitAndAssign<HeapFlags> for HeapFlags
[src]fn bitand_assign(&mut self, other: HeapFlags)
[src]
Disables all flags disabled in the set.
impl BitOrAssign<HeapFlags> for HeapFlags
[src]
impl BitOrAssign<HeapFlags> for HeapFlags
[src]fn bitor_assign(&mut self, other: HeapFlags)
[src]
Adds the set of flags.
impl BitXorAssign<HeapFlags> for HeapFlags
[src]
impl BitXorAssign<HeapFlags> for HeapFlags
[src]fn bitxor_assign(&mut self, other: HeapFlags)
[src]
Toggles the set of flags.
impl Extend<HeapFlags> for HeapFlags
[src]
impl Extend<HeapFlags> for HeapFlags
[src]fn extend<T: IntoIterator<Item = HeapFlags>>(&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<HeapFlags> for HeapFlags
[src]
impl FromIterator<HeapFlags> for HeapFlags
[src]fn from_iter<T: IntoIterator<Item = HeapFlags>>(iterator: T) -> HeapFlags
[src]
impl PartialOrd<HeapFlags> for HeapFlags
[src]
impl PartialOrd<HeapFlags> for HeapFlags
[src]impl StructuralEq for HeapFlags
[src]
impl StructuralEq for HeapFlags
[src]impl StructuralPartialEq for HeapFlags
[src]
impl StructuralPartialEq for HeapFlags
[src]Auto Trait Implementations
impl RefUnwindSafe for HeapFlags
impl RefUnwindSafe for HeapFlags
impl UnwindSafe for HeapFlags
impl UnwindSafe for HeapFlags