Struct magnus::r_typed_data::DataType
source · #[repr(transparent)]pub struct DataType(_);
Expand description
A C struct containing metadata on a Rust type, for use with the
rb_data_typed_object_wrap
API.
Implementations§
source§impl DataType
impl DataType
sourcepub fn builder<T>(name: &'static str) -> DataTypeBuilder<T>where
T: DataTypeFunctions,
pub fn builder<T>(name: &'static str) -> DataTypeBuilder<T>where
T: DataTypeFunctions,
Create a new DataTypeBuilder
.
name
should be unique per wrapped type. It does not need to be a
valid Ruby identifier.