Bytes::to_vec
pub static fn to_vec(Bytes b) -> Vec<byte> Import
Source: use bytes::{Bytes}; src/bytes.hy Returns the wrapped buffer.
Parameters#
| Name | Type |
|---|---|
b | Bytes |
Returns#
Vec<byte>
See also#
Bytes: A wrapper around aVec<byte>, for APIs that want a distinct byte-buffer type.Bytes::from_vec: Wrapsbufwithout copying it.