Method lrs::bx::BoxBuf::set

Stores a value in the buffer, creating a real Box.

Syntax

impl<T, H> BoxBuf<T, H>
    where H: Allocator,
{
    fn set(self, val: T) -> Box<T, H>
}

Arguments

NameDescription
val

The value to be stored in the buffer.