Associated function in bytes · Bytes coil-stdlib

Bytes::from_vec

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

Wraps buf without copying it.

Parameters#

NameType
bufVec<byte>

Returns#

Bytes

See also#

  • Bytes: A wrapper around a Vec<byte>, for APIs that want a distinct byte-buffer type.
  • Bytes::to_vec: Returns the wrapped buffer.
↑ ↓ navigate ↵ open