#[repr(transparent)]pub struct MTLMathMode(pub NSInteger);Available on crate feature
MTLLibrary only.Expand description
An enum to indicate if the compiler can perform optimizations for floating-point arithmetic that may violate the IEEE 754 standard
Disables unsafe floating-point optimizations
Allows aggressive, unsafe floating-point optimizations but preserves infs and nans
Allows aggressive, unsafe floating-point optimizations
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Trait Implementations§
Source§impl Clone for MTLMathMode
impl Clone for MTLMathMode
Source§fn clone(&self) -> MTLMathMode
fn clone(&self) -> MTLMathMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MTLMathMode
impl Debug for MTLMathMode
Source§impl Encode for MTLMathMode
impl Encode for MTLMathMode
Source§impl Hash for MTLMathMode
impl Hash for MTLMathMode
Source§impl Ord for MTLMathMode
impl Ord for MTLMathMode
Source§fn cmp(&self, other: &MTLMathMode) -> Ordering
fn cmp(&self, other: &MTLMathMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MTLMathMode
impl PartialEq for MTLMathMode
Source§impl PartialOrd for MTLMathMode
impl PartialOrd for MTLMathMode
Source§impl RefEncode for MTLMathMode
impl RefEncode for MTLMathMode
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for MTLMathMode
impl Eq for MTLMathMode
impl StructuralPartialEq for MTLMathMode
Auto Trait Implementations§
impl Freeze for MTLMathMode
impl RefUnwindSafe for MTLMathMode
impl Send for MTLMathMode
impl Sync for MTLMathMode
impl Unpin for MTLMathMode
impl UnwindSafe for MTLMathMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.