#[repr(u8)]pub enum UnaryNaNPropagationMode {
AlwaysCanonical = 0,
First = 1,
}
Expand description
Select how NaN payloads should be propagated
Variants§
AlwaysCanonical = 0
NaN payloads are always canonical
First = 1
If the first argument is a NaN, then the result uses the first argument’s payload, else the result is the canonical NaN.
Implementations§
Source§impl UnaryNaNPropagationMode
impl UnaryNaNPropagationMode
Sourcepub fn calculate_propagation_results(
self,
first_class: FloatClass,
) -> UnaryNaNPropagationResults
pub fn calculate_propagation_results( self, first_class: FloatClass, ) -> UnaryNaNPropagationResults
calculate the result of NaN propagation for a floating-point operation
Trait Implementations§
Source§impl Clone for UnaryNaNPropagationMode
impl Clone for UnaryNaNPropagationMode
Source§fn clone(&self) -> UnaryNaNPropagationMode
fn clone(&self) -> UnaryNaNPropagationMode
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 UnaryNaNPropagationMode
impl Debug for UnaryNaNPropagationMode
Source§impl From<BinaryNaNPropagationMode> for UnaryNaNPropagationMode
impl From<BinaryNaNPropagationMode> for UnaryNaNPropagationMode
Source§fn from(v: BinaryNaNPropagationMode) -> Self
fn from(v: BinaryNaNPropagationMode) -> Self
Converts to this type from the input type.
Source§impl Hash for UnaryNaNPropagationMode
impl Hash for UnaryNaNPropagationMode
Source§impl PartialEq for UnaryNaNPropagationMode
impl PartialEq for UnaryNaNPropagationMode
impl Copy for UnaryNaNPropagationMode
impl Eq for UnaryNaNPropagationMode
impl StructuralPartialEq for UnaryNaNPropagationMode
Auto Trait Implementations§
impl Freeze for UnaryNaNPropagationMode
impl RefUnwindSafe for UnaryNaNPropagationMode
impl Send for UnaryNaNPropagationMode
impl Sync for UnaryNaNPropagationMode
impl Unpin for UnaryNaNPropagationMode
impl UnwindSafe for UnaryNaNPropagationMode
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