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.