pub fn parse_policy_by_reference<'a>(
binary_policy: &'a [u8],
) -> Result<Unvalidated<ByRef<&'a [u8]>>, Error>
Expand description
Parses binary_policy
by reference; that is, constructs parser output structures that contain
references to data in binary_policy
. This function returns unvalidated_parser_output
on
success, or an error if parsing failed.
If the caller does needs to retain both the parsed output and the binary policy, then
parse_policy_by_value
should be used instead.