wasm4 0.2.0

WASM-4 bindings for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use core::fmt;

#[derive(Clone, Copy, PartialEq, Eq, Debug)]
pub struct OutOfDomainError(pub(crate) ());

impl fmt::Display for OutOfDomainError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        f.write_str("input is outside the domain")
    }
}

#[cfg(feature = "std")]
impl std::error::Error for OutOfDomainError {}