Enum wast::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
CanonicalNan
ArithmeticNan
Value(T)
Trait Implementations
sourceimpl<T: Debug> Debug for NanPattern<T>
impl<T: Debug> Debug for NanPattern<T>
sourceimpl<'a, T> Parse<'a> for NanPattern<T> where
T: Parse<'a>,
impl<'a, T> Parse<'a> for NanPattern<T> where
T: Parse<'a>,
sourceimpl<T: PartialEq> PartialEq<NanPattern<T>> for NanPattern<T>
impl<T: PartialEq> PartialEq<NanPattern<T>> for NanPattern<T>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &NanPattern<T>) -> bool
fn ne(&self, other: &NanPattern<T>) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more