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
sourceimpl 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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DataType
impl !Send for DataType
impl !Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more