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