Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Drive by fix of doc of Value. #4658

Merged
merged 2 commits into from
Jan 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions primitives/wasm-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,17 @@ pub enum ValueType {
/// Values supported by Substrate on the boundary between host/Wasm.
#[derive(PartialEq, Debug, Clone, Copy)]
pub enum Value {
/// An `i32` value.
/// A 32-bit integer.
I32(i32),
/// An `i64` value.
/// A 64-bit integer.
I64(i64),
/// An nan-preserving `f32` value.
/// A 32-bit floating-point number stored as raw bit pattern.
///
/// You can materialize this value using `f32::from_bits`.
F32(u32),
/// An nan-preserving `f64` value.
/// A 64-bit floating-point number stored as raw bit pattern.
///
/// You can materialize this value using `f64::from_bits`.
F64(u64),
}

Expand Down