Skip to main content

read_network_from

Function read_network_from 

Source
pub fn read_network_from(source: impl BufRead) -> Result<Network>
Expand description

Same as read_network, for callers that already have the .net.xml bytes in hand (an in-memory buffer, a decompressed stream, …) rather than a file on disk.

§Errors

Same as read_network, minus the failure to open a file.