Skip to main content

skip_container

Function skip_container 

Source
pub fn skip_container(r: &mut TlvReader<'_>) -> Result<(), ImError>
Expand description

Reader positioned just after a container start: discard the whole sub-tree (used to skip fields we do not consume). Calling this with the reader in any other position yields an error::ImError or misattributed members — never a panic or UB.

§Errors

Propagates any error from read_container_members.