rune/modules/
u64.rs

1//! Integers.
2
3use core::cmp::Ordering;
4use core::num::ParseIntError;
5
6use crate as rune;
7use crate::alloc;
8use crate::alloc::string::TryToString;
9use crate::runtime::{VmErrorKind, VmResult};
10use crate::{ContextError, Module};
11
12/// Unsigned integers.
13///
14/// This provides methods for computing over and parsing 64-bit unsigned integers.
15#[rune::module(::std::u64)]
16pub fn module() -> Result<Module, ContextError> {
17    let mut m = Module::from_meta(self::module_meta)?;
18    unsigned!(m, u64);
19    Ok(m)
20}
21
22unsigned_fns!(u64);