[−][src]Struct spirv_headers::MemoryAccess
SPIR-V operand kind: MemoryAccess
Implementations
impl MemoryAccess
[src][−]
pub const NONE: MemoryAccess
[src]
pub const VOLATILE: MemoryAccess
[src]
pub const ALIGNED: MemoryAccess
[src]
pub const NONTEMPORAL: MemoryAccess
[src]
pub const MAKE_POINTER_AVAILABLE: MemoryAccess
[src]
pub const MAKE_POINTER_AVAILABLE_KHR: MemoryAccess
[src]
pub const MAKE_POINTER_VISIBLE: MemoryAccess
[src]
pub const MAKE_POINTER_VISIBLE_KHR: MemoryAccess
[src]
pub const NON_PRIVATE_POINTER: MemoryAccess
[src]
pub const NON_PRIVATE_POINTER_KHR: MemoryAccess
[src]
pub const fn empty() -> MemoryAccess
[src][−]
Returns an empty set of flags
pub const fn all() -> MemoryAccess
[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<MemoryAccess>
[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) -> MemoryAccess
[src][−]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> MemoryAccess
[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: MemoryAccess) -> bool
[src][−]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: MemoryAccess) -> bool
[src][−]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: MemoryAccess)
[src][−]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: MemoryAccess)
[src][−]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: MemoryAccess)
[src][−]
Toggles the specified flags in-place.
pub fn set(&mut self, other: MemoryAccess, value: bool)
[src][−]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for MemoryAccess
[src][+]
impl BitAnd<MemoryAccess> for MemoryAccess
[src][+]
impl BitAndAssign<MemoryAccess> for MemoryAccess
[src][+]
impl BitOr<MemoryAccess> for MemoryAccess
[src][+]
impl BitOrAssign<MemoryAccess> for MemoryAccess
[src][+]
impl BitXor<MemoryAccess> for MemoryAccess
[src][+]
impl BitXorAssign<MemoryAccess> for MemoryAccess
[src][+]
impl Clone for MemoryAccess
[src][+]
impl Copy for MemoryAccess
[src]
impl Debug for MemoryAccess
[src][+]
impl Eq for MemoryAccess
[src]
impl Extend<MemoryAccess> for MemoryAccess
[src][+]
impl FromIterator<MemoryAccess> for MemoryAccess
[src][+]
impl Hash for MemoryAccess
[src][+]
impl LowerHex for MemoryAccess
[src][+]
impl Not for MemoryAccess
[src][+]
impl Octal for MemoryAccess
[src][+]
impl Ord for MemoryAccess
[src][+]
impl PartialEq<MemoryAccess> for MemoryAccess
[src][+]
impl PartialOrd<MemoryAccess> for MemoryAccess
[src][+]
impl StructuralEq for MemoryAccess
[src]
impl StructuralPartialEq for MemoryAccess
[src]
impl Sub<MemoryAccess> for MemoryAccess
[src][+]
impl SubAssign<MemoryAccess> for MemoryAccess
[src][+]
impl UpperHex for MemoryAccess
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for MemoryAccess
impl Send for MemoryAccess
impl Sync for MemoryAccess
impl Unpin for MemoryAccess
impl UnwindSafe for MemoryAccess
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,