Skip to main content

encoded_size

Function encoded_size 

Source
pub fn encoded_size(v: &Value) -> usize
Expand description

Encode v and return the number of bytes it would occupy.

Returns 0 if v cannot be encoded; use encode_value if you need the error.