pub trait IntoVec: AsRef<[u8]> {
// Required method
fn into_vec(self) -> Vec<u8> ⓘ;
}Available on crate feature
provider only.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.