Skip to main content

create_import_source

Function create_import_source 

Source
pub fn create_import_source<R: BufRead + 'static>(
    reader: R,
    format: Format,
) -> Result<Box<dyn ImportSource>>
Expand description

Creates an import source for the given format and reader.

§Errors

Returns an error if the format doesn’t support import.