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