Trait IntoBytes

Source
pub trait IntoBytes: Into<Bytes> { }
Expand description

Types that implement From for Bytes {} Unfortunately, we cannot just use the more generic Into<Bytes> without running afoul of the From<X> for X base case, causing conflicting impls.

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.

Implementations on Foreign Types§

Source§

impl IntoBytes for &'static str

Source§

impl IntoBytes for &'static [u8]

Source§

impl IntoBytes for Box<[u8]>

Source§

impl IntoBytes for String

Source§

impl IntoBytes for Vec<u8>

Implementors§