Struct wasmbin::builtins::FloatConst
source · pub struct FloatConst<F> {
pub value: F,
}
Expand description
A wrapper around floats that treats NaN
s as equal.
This is useful in instruction context, where we don’t care about general floating number rules.
Fields§
§value: F
The float value.
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 copy 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<F> Decode for FloatConst<F>where
F: Decode,
impl<F> Decode for FloatConst<F>where
F: Decode,
source§impl<F> Encode for FloatConst<F>where
F: Encode,
impl<F> Encode for FloatConst<F>where
F: Encode,
source§impl Hash for FloatConst<f32>
impl Hash for FloatConst<f32>
source§impl Hash for FloatConst<f64>
impl Hash for FloatConst<f64>
source§impl PartialEq for FloatConst<f32>
impl PartialEq for FloatConst<f32>
source§impl PartialEq for FloatConst<f64>
impl PartialEq for FloatConst<f64>
source§impl<F> Visit for FloatConst<F>where
Self: 'static,
F: Visit,
impl<F> Visit for FloatConst<F>where
Self: 'static,
F: Visit,
source§fn visit_children<'a, VisitT: 'static, VisitE, VisitF: FnMut(&'a VisitT) -> Result<(), VisitE>>(
&'a self,
f: &mut VisitF
) -> Result<(), VisitError<VisitE>>
fn visit_children<'a, VisitT: 'static, VisitE, VisitF: FnMut(&'a VisitT) -> Result<(), VisitE>>( &'a self, f: &mut VisitF ) -> Result<(), VisitError<VisitE>>
Traverse the children of this value with the provided callback.
source§fn visit_children_mut<VisitT: 'static, VisitE, VisitF: FnMut(&mut VisitT) -> Result<(), VisitE>>(
&mut self,
f: &mut VisitF
) -> Result<(), VisitError<VisitE>>
fn visit_children_mut<VisitT: 'static, VisitE, VisitF: FnMut(&mut VisitT) -> Result<(), VisitE>>( &mut self, f: &mut VisitF ) -> Result<(), VisitError<VisitE>>
Traverse the children of this value mutably with the provided callback.
source§fn visit<'a, T: 'static, R: VisitResult, F: FnMut(&'a T) -> R>(
&'a self,
f: F
) -> Result<(), VisitError<R::Error>>
fn visit<'a, T: 'static, R: VisitResult, F: FnMut(&'a T) -> R>( &'a self, f: F ) -> Result<(), VisitError<R::Error>>
Traverse this value with the provided callback.
source§fn visit_mut<T: 'static, R: VisitResult, F: FnMut(&mut T) -> R>(
&mut self,
f: F
) -> Result<(), VisitError<R::Error>>
fn visit_mut<T: 'static, R: VisitResult, F: FnMut(&mut T) -> R>( &mut self, f: F ) -> Result<(), VisitError<R::Error>>
Traverse this value mutably with the provided callback.
impl<F> Eq for FloatConst<F>where
Self: PartialEq,
Auto Trait Implementations§
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