Skip to main content

IntoUtf8Bytes

Trait IntoUtf8Bytes 

Source
pub trait IntoUtf8Bytes: Into<Bytes> + AsRef<str> {
    // Provided method
    fn into_utf8_bytes(self) -> Utf8Bytes { ... }
}

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.

Implementors§

Source§

impl<T> IntoUtf8Bytes for T
where T: Into<Bytes> + AsRef<str>,