pub trait IntoBytes: Into<Bytes> { }Expand description
Types that impl From<CustomType> 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.