pub trait CustomData {
// Required methods
unsafe fn ptr(&self) -> *const u8;
unsafe fn len(&self) -> usize;
}Expand description
Encapsulates custom data that can be wrapped.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".