pub struct RustTypeInfo {
pub name: &'static str,
pub construct_fn: fn() -> *mut u8,
pub drop_fn: unsafe fn(*mut u8),
}Expand description
Information about a Rust type registered for reification.
Fields§
§name: &'static strHuman-readable type name (for debugging).
construct_fn: fn() -> *mut u8Allocate and return a default-initialized instance. The returned pointer
must be freeable by drop_fn.
drop_fn: unsafe fn(*mut u8)Drop and deallocate an instance previously created by construct_fn.
Auto Trait Implementations§
impl Freeze for RustTypeInfo
impl RefUnwindSafe for RustTypeInfo
impl Send for RustTypeInfo
impl Sync for RustTypeInfo
impl Unpin for RustTypeInfo
impl UnsafeUnpin for RustTypeInfo
impl UnwindSafe for RustTypeInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more