Function bcs::serialized_size_with_limit
source ยท pub fn serialized_size_with_limit<T>(value: &T, limit: usize) -> Result<usize>
Expand description
Same as serialized_size
but use limit
as max container depth instead of MAX_CONTAINER_DEPTH
Note that limit
has to be lower than MAX_CONTAINER_DEPTH