#[repr(C)]pub struct CustomDataRegistration {
pub type_name: BorrowedStr<'static>,
pub vtable: *const CustomDataVTable,
}Expand description
Registration entry for one custom-data type.
Fields§
§type_name: BorrowedStr<'static>Canonical type name; must match the type_name returned by the vtable.
vtable: *const CustomDataVTablePointer to the static vtable for this type.
Trait Implementations§
impl Send for CustomDataRegistration
SAFETY: the pointer is 'static and immutable for the process lifetime.
impl Sync for CustomDataRegistration
SAFETY: see above.
Auto Trait Implementations§
impl Freeze for CustomDataRegistration
impl RefUnwindSafe for CustomDataRegistration
impl Unpin for CustomDataRegistration
impl UnsafeUnpin for CustomDataRegistration
impl UnwindSafe for CustomDataRegistration
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