Function bcs::serialize_into_with_limit
source · pub fn serialize_into_with_limit<W, T>(
write: &mut W,
value: &T,
limit: usize
) -> Result<()>
Expand description
Same as serialize_into
but use limit
as max container depth instead of MAX_CONTAINER_DEPTH
Note that limit
has to be lower than MAX_CONTAINER_DEPTH