pub trait OwnedBytes: Sized + 'static {
// Required method
fn from_bytes(bytes: Bytes) -> Self;
// Provided method
fn claim<V: Any>(view: V) -> Result<Self, V> { ... }
}Expand description
Required Methods§
Sourcefn from_bytes(bytes: Bytes) -> Self
fn from_bytes(bytes: Bytes) -> Self
Builds the container from shared bytes.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".