Associated function in bytes · Bytes coil-stdlib

Bytes::to_vec

pub static fn to_vec(Bytes b) -> Vec<byte>
Import
use bytes::{Bytes};
Source: src/bytes.hy

Returns the wrapped buffer.

Parameters#

NameType
bBytes

Returns#

Vec<byte>

See also#

  • Bytes: A wrapper around a Vec<byte>, for APIs that want a distinct byte-buffer type.
  • Bytes::from_vec: Wraps buf without copying it.
↑ ↓ navigate ↵ open