SliceBuilderNewFn

Type Alias SliceBuilderNewFn 

Source
pub type SliceBuilderNewFn = fn() -> PtrMut<'static>;
Expand description

Creates a new slice builder for a pointer: ie. for Arc<[u8]>, it builds a Vec<u8> internally, to which you can push, and then turn into an Arc<[u8]> at the last stage.

This works for any U in Arc<[U]> because those have separate concrete implementations, and thus, separate concrete vtables.