runestick 0.9.1

Runescript, a generic stack-based virtual machine for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! The `std::cmp` module.
use crate::{ContextError, Module};

/// Construct the `std::cmp` module.
pub fn module() -> Result<Module, ContextError> {
    let mut module = Module::with_crate_item("std", &["cmp"]);

    module.ty::<std::cmp::Ordering>()?;

    Ok(module)
}