Struct ocl::flags::MemMigrationFlags
[−]
[src]
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.
Trait Implementations
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 Ord for MemMigrationFlags
fn cmp(&self, __arg_0: &MemMigrationFlags) -> Ordering
impl Not for MemMigrationFlags
type Output = MemMigrationFlags
fn not(self) -> MemMigrationFlags
Returns the complement of this set of flags.
impl PartialEq<MemMigrationFlags> for MemMigrationFlags
fn eq(&self, __arg_0: &MemMigrationFlags) -> bool
fn ne(&self, __arg_0: &MemMigrationFlags) -> bool
impl FromIterator<MemMigrationFlags> for MemMigrationFlags
fn from_iter<T>(iterator: T) -> MemMigrationFlags where T: IntoIterator<Item=MemMigrationFlags>
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 Hash for MemMigrationFlags
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 Debug for MemMigrationFlags
impl BitOr<MemMigrationFlags> for MemMigrationFlags
type Output = MemMigrationFlags
fn bitor(self, other: MemMigrationFlags) -> MemMigrationFlags
Returns the union of the two sets of flags.
impl Copy for MemMigrationFlags
impl Eq for MemMigrationFlags
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 BitAnd<MemMigrationFlags> for MemMigrationFlags
type Output = MemMigrationFlags
fn bitand(self, other: MemMigrationFlags) -> MemMigrationFlags
Returns the intersection between the two sets of flags.