Skip to main content

wrap

Function wrap 

Source
pub fn wrap<T>(inner: T) -> Wrap<T>
Expand description

Wrap a type so that it implements Reader and Writer.

ยงExamples

use musli::wrap;

let buffer: Vec<u8> = Vec::new();
let wrapped = wrap::wrap(buffer);