Skip to main content

expect_tag

Function expect_tag 

Source
pub fn expect_tag(
    d: &mut Decoder<'_>,
    expected: impl Into<Tag>,
) -> Result<(), Error>
Expand description

Decode a tagged value, expecting the given tag. For a lenient version, see allow_tag.