pub fn decode<V: Source + Sink>(
ast: &Ast,
request: &ProbeRequest,
bytes: &[u8],
) -> Result<V, ProbeError>Expand description
Read bytes as request.type_name, in canonical form.
The value that comes back is already canonical —
crate::canonical::text renders it, and
crate::canonical::difference compares it against the sample that
went in.
§Errors
ProbeError, naming the path in the value or the offset in the
stream.