[][src]Macro seq_io::parallel_record_impl

macro_rules! parallel_record_impl {
    ($format:expr, $name:ident, $name_init:ident, 
        $RecordSet:ty, $Record:ty, $Error:ty) => { ... };
}

Allows generating functions equivalent to the read_process_xy_records functions in this crate for your own types. This is rather a workaround because the generic approach (read_process_records_init) does currently not work.

  • $format: String specifying the name of the sequence format (for genrated documentation)
  • $name: name of the generated function
  • $name_init: name of another generated function, which takes a closure initializing the readers in the background thread.
  • $RecordSet: record set type (see RecordSetReader::RecordSet). In addition to the trait requirements, &$RecordSet needs to implement IntoIterator<Item=$Record>.
  • $Record: record type returned by the record set iterator.
  • $Error: reading error type (RecordSetReader::Err)