Function fourleaf::de::from_stream_borrow [] [src]

pub fn from_stream_borrow<R: Read, T: Deserialize<R, ZeroCopy>>(
    stream: &mut Stream<R>,
    config: &Config
) -> Result<T>

Deserialises an instance of T from the given stream.

Byte arrays will be borrowed from the underlying reader when the type to be deserialised supports it.

If T actually contains anything supporting zero-copy deserialisation, R often effectively must be AsExtBytes as well.

On success, stream will be left positioned immediately after the value that was read, allowing for another immediately following value to be read in with another call to this function.