pub enum FloatType {
F32,
F64,
}Expand description
The types ๐ฟ๐ฅ๐ค and ๐ฟ๐จ๐ฆ classify 32 and 64 bit floating-point data, respectively. They correspond to the respective binary floating-point representations, also known as single and double precision, as defined by the IEEE 754-2019 standard (Section 3.3).
ยงExamples
use wasm_ast::{ValueType, NumberType, FloatType};
assert_eq!(ValueType::F32, FloatType::F32.into());
assert_eq!(NumberType::F32, FloatType::F32.into());
assert_eq!(ValueType::F64, FloatType::F64.into());
assert_eq!(NumberType::F64, FloatType::F64.into());Variantsยง
Trait Implementationsยง
Sourceยงimpl From<FloatType> for NumberType
impl From<FloatType> for NumberType
impl Copy for FloatType
impl Eq for FloatType
impl StructuralPartialEq for FloatType
Auto Trait Implementationsยง
impl Freeze for FloatType
impl RefUnwindSafe for FloatType
impl Send for FloatType
impl Sync for FloatType
impl Unpin for FloatType
impl UnwindSafe for FloatType
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