Skip to main content

BoxBytesOf

Trait BoxBytesOf 

Source
pub trait BoxBytesOf {
    // Required method
    fn box_bytes_of(self: Box<Self>) -> BoxBytes;
}

Required Methods§

Source

fn box_bytes_of(self: Box<Self>) -> BoxBytes

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BoxBytesOf for str

Source§

fn box_bytes_of(self: Box<Self>) -> BoxBytes

Source§

impl<T: NoUninit> BoxBytesOf for [T]

Source§

fn box_bytes_of(self: Box<Self>) -> BoxBytes

Implementors§