pub trait IntoBytes: AsRef<[u8]> {
// Required method
fn into_bytes(self) -> Bytes;
}Expand description
Required Methods§
Sourcefn into_bytes(self) -> Bytes
fn into_bytes(self) -> Bytes
Convert this buffer into owned bytes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".