Module magnus::r_typed_data

source ·
Expand description

Types and Traits for wrapping Rust types as Ruby objects.

This provides a Rust API to the rb_data_typed_object_wrap function from Ruby’s C API.

Structs

A C struct containing metadata on a Rust type, for use with the rb_data_typed_object_wrap API.
A Value pointer to a RTypedData struct, Ruby’s internal representation of objects that wrap foreign types.

Traits

A helper trait used to define functions associated with a DataType.
A trait for Rust types that can be used with the rb_data_typed_object_wrap API.