1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use ruby_sys::types; use class::any_object::AnyObject; pub use libc::{c_char, c_int, c_long}; pub use ruby_sys::types::ValueType; pub type Value = types::Value; pub type InternalValue = types::InternalValue; pub type SignedValue = types::SignedValue; pub type Id = types::Id; pub type Argc = types::Argc; pub type Callback<I, O> = extern "C" fn(Argc, *const AnyObject, I) -> O; pub type CallbackPtr = types::CallbackPtr;