ewasm_api 0.11.0

ewasm API for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
//! Basic type conversion traits. Unlike the native standard library, `U: From<T>` does not yet
//! imply `T: Into<U>`.

pub trait From<T>: Sized {
    fn from(_: T) -> Self;
}

pub trait Into<T>: Sized {
    fn from(self) -> T;
}