Function decode_with_constraints

Source
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 OER encoding, while setting specific constraints.