Method lrs::string::ByteString::from_vec

Creates a ByteString by wrapping a vector.

Syntax

impl<H> ByteString<H>
    where H: Allocator,
{
    fn from_vec(v: Vec<u8, H>) -> ByteString<H>
}

Arguments

NameDescription
v

The vector to be wrapped.