pub fn to_vec_with_capacity<'a, T>(value: &'a T, cap: usize) -> Result<Vec<u32>>where
    T: Serialize + ?Sized,
Expand description

Serialize to a vector of u32 words with size hinting

Includes a caller-provided hint cap giving the capacity of u32 words necessary to serialize value.