rune 0.12.0

An embeddable dynamic programming language for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! 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)
}