Enum wast::core::NanPattern
source · pub enum NanPattern<T> {
CanonicalNan,
ArithmeticNan,
Value(T),
}
Expand description
Either a NaN pattern (nan:canonical
, nan:arithmetic
) or a value of type T
.
Variants§
Trait Implementations§
source§impl<T: Debug> Debug for NanPattern<T>
impl<T: Debug> Debug for NanPattern<T>
source§impl<'a, T> Parse<'a> for NanPattern<T>where
T: Parse<'a>,
impl<'a, T> Parse<'a> for NanPattern<T>where T: Parse<'a>,
source§impl<T: PartialEq> PartialEq for NanPattern<T>
impl<T: PartialEq> PartialEq for NanPattern<T>
source§fn eq(&self, other: &NanPattern<T>) -> bool
fn eq(&self, other: &NanPattern<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T> StructuralPartialEq for NanPattern<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for NanPattern<T>where T: RefUnwindSafe,
impl<T> Send for NanPattern<T>where T: Send,
impl<T> Sync for NanPattern<T>where T: Sync,
impl<T> Unpin for NanPattern<T>where T: Unpin,
impl<T> UnwindSafe for NanPattern<T>where T: UnwindSafe,
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