pub trait IntoVec: AsRef<[u8]> {
// Required method
fn into_vec(self) -> Vec<u8> ⓘ;
}Expand description
Trait for converting encoded types to Vec<u8>.
This is implemented for all AsRef<[u8]> types. For Vec<u8> this is a no-op,
for other types like ArrayVec or fixed arrays it performs a copy.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".