zerovec::ule

Function encode_varule_to_box

Source
pub fn encode_varule_to_box<S: EncodeAsVarULE<T>, T: VarULE + ?Sized>(
    x: &S,
) -> Box<T>
Expand description

Given an EncodeAsVarULE type S, encode it into a Box<T>

This is primarily useful for generating Deserialize impls for VarULE types