Module varlen::vbox

source · []
Expand description

Equivalent of Box<T> for variable-length types.

Examples

Heap-allocated Str:

use varlen::prelude::*;
let s = VBox::new(Str::copy("hello"));
assert_eq!("hello", &s[..]);

Structs

Equivalent of Box<T> for variable-length types.