pub enum FloatConst<F> {
ArithmeticNan,
CanonicalNan,
Value(F),
}Expand description
A small wrapper around a float which serializes/deserializes from a string.
Variants§
Implementations§
Trait Implementations§
Source§impl<F: Clone> Clone for FloatConst<F>
impl<F: Clone> Clone for FloatConst<F>
Source§fn clone(&self) -> FloatConst<F>
fn clone(&self) -> FloatConst<F>
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<F: Debug> Debug for FloatConst<F>
impl<F: Debug> Debug for FloatConst<F>
Source§impl<'de, F: Float> Deserialize<'de> for FloatConst<F>
impl<'de, F: Float> Deserialize<'de> for FloatConst<F>
Source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T, F> From<NanPattern<T>> for FloatConst<F>where
T: Into<FloatConst<F>>,
impl<T, F> From<NanPattern<T>> for FloatConst<F>where
T: Into<FloatConst<F>>,
Source§fn from(wast: NanPattern<T>) -> FloatConst<F>
fn from(wast: NanPattern<T>) -> FloatConst<F>
Converts to this type from the input type.
Source§impl<F: Float> Serialize for FloatConst<F>
impl<F: Float> Serialize for FloatConst<F>
impl<F: Copy> Copy for FloatConst<F>
Auto Trait Implementations§
impl<F> Freeze for FloatConst<F>where
F: Freeze,
impl<F> RefUnwindSafe for FloatConst<F>where
F: RefUnwindSafe,
impl<F> Send for FloatConst<F>where
F: Send,
impl<F> Sync for FloatConst<F>where
F: Sync,
impl<F> Unpin for FloatConst<F>where
F: Unpin,
impl<F> UnwindSafe for FloatConst<F>where
F: 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