/// Called at the end of each parse to ensure that the given buffer is empty, as in there are no
/// trailing bytes. Calling these bytes as the "inner" bytes as opposed to "outer" bytes seen by
/// the [`deserialize_envelope`].
Called at the end of each parse to ensure that the given buffer is empty, as in there are no
trailing bytes. Calling these bytes as the "inner" bytes as opposed to "outer" bytes seen by
the [`deserialize_envelope`].
Called at the end of each parse to ensure that the given buffer is empty as in there are no trailing bytes . Calling these bytes as the " inner " bytes as opposed to " outer " bytes seen by the [ ` deserialize_envelope ` ] .
fn ensure_no_inner_trailing_bytes(content: &[u8]) -> Result<(), TrailingBytesError> {
    if content.is_empty() || !cfg!(feature = "strict") {
        Ok(())
    } else {
        Err(TrailingBytesError::Inner)
    }
}
fn ensure_no_inner_trailing_bytes ( content : & [ u8 ] ) -> Result < ( ) , TrailingBytesError > { if content . is_empty ( ) || ! cfg ! ( feature " " ) { Ok ( ( ) ) } else { Err ( TrailingBytesError :: Inner ) } }
Called at the end of each parse to ensure that the given buffer is empty, as in there are no
trailing bytes.
Called at the end of each parse to ensure that the given buffer is empty as in there are no trailing bytes .
content
&[u8]