Skip to main content

from_bytes_with

Function from_bytes_with 

Source
pub fn from_bytes_with<T>(
    bytes: &[u8],
    resolver: &mut dyn Resolve,
) -> Result<Read<T>, Vec<Diagnostic>>
where T: Schema,
Expand description

read_bytes with resolver for the references: the binary form read through a value tree (the straight path has nowhere to ask), so references can be checked, rewritten and expanded (with::Expand).

§Errors

The decoding error, or every problem reading it (the resolver’s among them).