Module minutus::types

source ·
Expand description

Type casting logics between Rust and mruby

Rust typemruby type
i8, i16, i32, i64, isizeInteger
u8, u16, u32, u64, usizeInteger
f32, f64Float
StringString
Option<T>T or nil
(T, U), (T, U, V), etc[T, U], [T, U, V], etc
Vec<T>Array
std::collections::HashMap<T, U>Hash
minutus::types::RSymbolSymbol
boolany object
MrbData (structs marked by minutus::wrap)corresponding class

Any value in mruby can be cast to Rust’s bool. Rust’s bool cast to mruby’s true or false.

Structs

Traits

Type Aliases