Skip to content

armgit / vork

Public Imported from GitHub
0

Headless 3D and VFX engine for agents. Research preview.

255 B
Raw Blame
impl Bool32 {
    /// Return `true` when the C `wasm_bool_t` is non-zero.
    pub fn is_ok(&self) -> bool {
        self.0 != 0
    }
    /// Return `true` when the C `wasm_bool_t` is zero.
    pub fn is_err(&self) -> bool {
        !self.is_ok()
    }
}