pub fn decode_with_constraints<T: Decode>(
constraints: Constraints<'_>,
input: &[u8],
) -> Result<T, DecodeError>
Expand description
Attempts to decode T
from input
using OER with constraints.
ยงErrors
Returns DecodeError
if input
is not valid COER, while passing setting constraints.