pub trait ToSharedBuffer {
// Required method
fn to_shared_buffer(self) -> Result<SharedBuffer, BufferError>;
}Required Methods§
Creates a new SharedBuffer containing the byte representation of self.
§Errors
- Returns
BufferErrorif the allocation fails.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".