Skip to main content

open

Function open 

Source
pub fn open(path: &str, options: OpenOptions) -> Result<Reader>
Expand description

Open a file for reading, dispatching on its magic number.

The source is opened once and handed to whichever reader the magic names, so sniffing does not cost a second open — which over HTTP would be a second round trip.