product_shape

Function product_shape 

Source
pub fn product_shape(
    element: &DecodedEntity,
    decoder: &mut EntityDecoder<'_>,
) -> Result<Option<ProductShape>, ShapeError>
Expand description

The shape of element: Ok(None) iff its Representation (attribute 6) is $. Every other malformation is an Err carrying today’s message text; the probes that abstain on malformed input call .ok().flatten(), so the leniency stays visible at the call site.