Function risc0_zkvm::serde::to_vec_with_capacity
source · pub fn to_vec_with_capacity<T>(value: &T, cap: usize) -> Result<Vec<u32>>
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
.