[go: up one dir, main page]

Function decode_from_std_read

Source
pub fn decode_from_std_read<D: Decode<()>, C: Config, R: Read>(
    src: &mut R,
    config: C,
) -> Result<D, DecodeError>
Available on crate feature std only.
Expand description

Decode type D from the given reader with the given Config. The reader can be any type that implements std::io::Read, e.g. std::fs::File.

See the config module for more information about config options.