pub unsafe trait Emplacer<T: FlatUnsized + ?Sized>: Sized {
// Required method
unsafe fn emplace_unchecked(self, bytes: &mut [u8]) -> Result<(), Error>;
// Provided method
fn emplace(self, bytes: &mut [u8]) -> Result<(), Error> { ... }
}Expand description
In-place initializer of flat type.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.