Struct ocl::flags::MemMigrationFlags
[−]
pub struct MemMigrationFlags { /* fields omitted */ }
cl_mem_migration_flags - bitfield
Methods
impl MemMigrationFlags
fn empty() -> MemMigrationFlags
Returns an empty set of flags.
fn all() -> MemMigrationFlags
Returns the set containing all flags.
fn bits(&self) -> u64
Returns the raw value of the flags currently stored.
fn from_bits(bits: u64) -> Option<MemMigrationFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u64) -> MemMigrationFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
Returns true
if all flags are currently set.
fn intersects(&self, other: MemMigrationFlags) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: MemMigrationFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: MemMigrationFlags)
Inserts the specified flags in-place.
fn remove(&mut self, other: MemMigrationFlags)
Removes the specified flags in-place.
fn toggle(&mut self, other: MemMigrationFlags)
Toggles the specified flags in-place.
fn set(&mut self, other: MemMigrationFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Eq for MemMigrationFlags
impl Ord for MemMigrationFlags
fn cmp(&self, __arg_0: &MemMigrationFlags) -> Ordering
impl FromIterator<MemMigrationFlags> for MemMigrationFlags
fn from_iter<T>(iterator: T) -> MemMigrationFlags where
T: IntoIterator<Item = MemMigrationFlags>,
T: IntoIterator<Item = MemMigrationFlags>,
impl BitAnd<MemMigrationFlags> for MemMigrationFlags
type Output = MemMigrationFlags
fn bitand(self, other: MemMigrationFlags) -> MemMigrationFlags
Returns the intersection between the two sets of flags.
impl Copy for MemMigrationFlags
impl BitOrAssign<MemMigrationFlags> for MemMigrationFlags
fn bitor_assign(&mut self, other: MemMigrationFlags)
Adds the set of flags.
impl Sub<MemMigrationFlags> for MemMigrationFlags
type Output = MemMigrationFlags
fn sub(self, other: MemMigrationFlags) -> MemMigrationFlags
Returns the set difference of the two sets of flags.
impl PartialOrd<MemMigrationFlags> for MemMigrationFlags
fn partial_cmp(&self, __arg_0: &MemMigrationFlags) -> Option<Ordering>
fn lt(&self, __arg_0: &MemMigrationFlags) -> bool
fn le(&self, __arg_0: &MemMigrationFlags) -> bool
fn gt(&self, __arg_0: &MemMigrationFlags) -> bool
fn ge(&self, __arg_0: &MemMigrationFlags) -> bool
impl Debug for MemMigrationFlags
impl BitXorAssign<MemMigrationFlags> for MemMigrationFlags
fn bitxor_assign(&mut self, other: MemMigrationFlags)
Toggles the set of flags.
impl PartialEq<MemMigrationFlags> for MemMigrationFlags
fn eq(&self, __arg_0: &MemMigrationFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MemMigrationFlags) -> bool
This method tests for !=
.
impl BitAndAssign<MemMigrationFlags> for MemMigrationFlags
fn bitand_assign(&mut self, other: MemMigrationFlags)
Disables all flags disabled in the set.
impl Clone for MemMigrationFlags
fn clone(&self) -> MemMigrationFlags
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Not for MemMigrationFlags
type Output = MemMigrationFlags
fn not(self) -> MemMigrationFlags
Returns the complement of this set of flags.
impl Extend<MemMigrationFlags> for MemMigrationFlags
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = MemMigrationFlags>,
T: IntoIterator<Item = MemMigrationFlags>,
impl BitXor<MemMigrationFlags> for MemMigrationFlags
type Output = MemMigrationFlags
fn bitxor(self, other: MemMigrationFlags) -> MemMigrationFlags
Returns the left flags, but with all the right flags toggled.
impl BitOr<MemMigrationFlags> for MemMigrationFlags
type Output = MemMigrationFlags
fn bitor(self, other: MemMigrationFlags) -> MemMigrationFlags
Returns the union of the two sets of flags.
impl SubAssign<MemMigrationFlags> for MemMigrationFlags
fn sub_assign(&mut self, other: MemMigrationFlags)
Disables all flags enabled in the set.