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