pub struct MemLocationMemFlags { /* private fields */ }Implementations§
Source§impl MemLocationMemFlags
impl MemLocationMemFlags
pub const KEEP_IN_PLACE: MemLocationMemFlags
pub const ALLOC_ON_DEVICE: MemLocationMemFlags
pub const COPY_TO_DEVICE: MemLocationMemFlags
pub const FORCE_COPY_TO_DEVICE: MemLocationMemFlags
Sourcepub const fn empty() -> MemLocationMemFlags
pub const fn empty() -> MemLocationMemFlags
Returns an empty set of flags
Sourcepub const fn all() -> MemLocationMemFlags
pub const fn all() -> MemLocationMemFlags
Returns the set containing all flags.
Sourcepub const fn bits(&self) -> cl_mem_flags
pub const fn bits(&self) -> cl_mem_flags
Returns the raw value of the flags currently stored.
Sourcepub fn from_bits(bits: cl_mem_flags) -> Option<MemLocationMemFlags>
pub fn from_bits(bits: cl_mem_flags) -> Option<MemLocationMemFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: cl_mem_flags) -> MemLocationMemFlags
pub const fn from_bits_truncate(bits: cl_mem_flags) -> MemLocationMemFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(
bits: cl_mem_flags,
) -> MemLocationMemFlags
pub const unsafe fn from_bits_unchecked( bits: cl_mem_flags, ) -> MemLocationMemFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: MemLocationMemFlags) -> bool
pub const fn intersects(&self, other: MemLocationMemFlags) -> bool
Returns true if there are flags common to both self and other.
Sourcepub const fn contains(&self, other: MemLocationMemFlags) -> bool
pub const fn contains(&self, other: MemLocationMemFlags) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: MemLocationMemFlags)
pub fn insert(&mut self, other: MemLocationMemFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: MemLocationMemFlags)
pub fn remove(&mut self, other: MemLocationMemFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: MemLocationMemFlags)
pub fn toggle(&mut self, other: MemLocationMemFlags)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: MemLocationMemFlags, value: bool)
pub fn set(&mut self, other: MemLocationMemFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for MemLocationMemFlags
impl Binary for MemLocationMemFlags
Source§impl BitAnd for MemLocationMemFlags
impl BitAnd for MemLocationMemFlags
Source§fn bitand(self, other: MemLocationMemFlags) -> MemLocationMemFlags
fn bitand(self, other: MemLocationMemFlags) -> MemLocationMemFlags
Returns the intersection between the two sets of flags.
Source§type Output = MemLocationMemFlags
type Output = MemLocationMemFlags
& operator.Source§impl BitAndAssign for MemLocationMemFlags
impl BitAndAssign for MemLocationMemFlags
Source§fn bitand_assign(&mut self, other: MemLocationMemFlags)
fn bitand_assign(&mut self, other: MemLocationMemFlags)
Disables all flags disabled in the set.
Source§impl BitOr for MemLocationMemFlags
impl BitOr for MemLocationMemFlags
Source§fn bitor(self, other: MemLocationMemFlags) -> MemLocationMemFlags
fn bitor(self, other: MemLocationMemFlags) -> MemLocationMemFlags
Returns the union of the two sets of flags.
Source§type Output = MemLocationMemFlags
type Output = MemLocationMemFlags
| operator.Source§impl BitOrAssign for MemLocationMemFlags
impl BitOrAssign for MemLocationMemFlags
Source§fn bitor_assign(&mut self, other: MemLocationMemFlags)
fn bitor_assign(&mut self, other: MemLocationMemFlags)
Adds the set of flags.
Source§impl BitXor for MemLocationMemFlags
impl BitXor for MemLocationMemFlags
Source§fn bitxor(self, other: MemLocationMemFlags) -> MemLocationMemFlags
fn bitxor(self, other: MemLocationMemFlags) -> MemLocationMemFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = MemLocationMemFlags
type Output = MemLocationMemFlags
^ operator.Source§impl BitXorAssign for MemLocationMemFlags
impl BitXorAssign for MemLocationMemFlags
Source§fn bitxor_assign(&mut self, other: MemLocationMemFlags)
fn bitxor_assign(&mut self, other: MemLocationMemFlags)
Toggles the set of flags.
Source§impl Clone for MemLocationMemFlags
impl Clone for MemLocationMemFlags
Source§fn clone(&self) -> MemLocationMemFlags
fn clone(&self) -> MemLocationMemFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MemLocationMemFlags
impl Debug for MemLocationMemFlags
Source§impl Extend<MemLocationMemFlags> for MemLocationMemFlags
impl Extend<MemLocationMemFlags> for MemLocationMemFlags
Source§fn extend<T: IntoIterator<Item = MemLocationMemFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = MemLocationMemFlags>>(&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 From<MemLocation> for MemLocationMemFlags
impl From<MemLocation> for MemLocationMemFlags
Source§fn from(mem_location: MemLocation) -> MemLocationMemFlags
fn from(mem_location: MemLocation) -> MemLocationMemFlags
Source§impl From<MemLocationMemFlags> for MemFlags
impl From<MemLocationMemFlags> for MemFlags
Source§fn from(loc: MemLocationMemFlags) -> MemFlags
fn from(loc: MemLocationMemFlags) -> MemFlags
Source§impl FromIterator<MemLocationMemFlags> for MemLocationMemFlags
impl FromIterator<MemLocationMemFlags> for MemLocationMemFlags
Source§fn from_iter<T: IntoIterator<Item = MemLocationMemFlags>>(
iterator: T,
) -> MemLocationMemFlags
fn from_iter<T: IntoIterator<Item = MemLocationMemFlags>>( iterator: T, ) -> MemLocationMemFlags
Source§impl Hash for MemLocationMemFlags
impl Hash for MemLocationMemFlags
Source§impl LowerHex for MemLocationMemFlags
impl LowerHex for MemLocationMemFlags
Source§impl Not for MemLocationMemFlags
impl Not for MemLocationMemFlags
Source§fn not(self) -> MemLocationMemFlags
fn not(self) -> MemLocationMemFlags
Returns the complement of this set of flags.
Source§type Output = MemLocationMemFlags
type Output = MemLocationMemFlags
! operator.Source§impl Octal for MemLocationMemFlags
impl Octal for MemLocationMemFlags
Source§impl Ord for MemLocationMemFlags
impl Ord for MemLocationMemFlags
Source§fn cmp(&self, other: &MemLocationMemFlags) -> Ordering
fn cmp(&self, other: &MemLocationMemFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MemLocationMemFlags
impl PartialEq for MemLocationMemFlags
Source§impl PartialOrd for MemLocationMemFlags
impl PartialOrd for MemLocationMemFlags
Source§impl Sub for MemLocationMemFlags
impl Sub for MemLocationMemFlags
Source§fn sub(self, other: MemLocationMemFlags) -> MemLocationMemFlags
fn sub(self, other: MemLocationMemFlags) -> MemLocationMemFlags
Returns the set difference of the two sets of flags.
Source§type Output = MemLocationMemFlags
type Output = MemLocationMemFlags
- operator.Source§impl SubAssign for MemLocationMemFlags
impl SubAssign for MemLocationMemFlags
Source§fn sub_assign(&mut self, other: MemLocationMemFlags)
fn sub_assign(&mut self, other: MemLocationMemFlags)
Disables all flags enabled in the set.