pub fn add(&mut self, batchlist: BatchList) {
        if let Some(batch_id) = batchlist.batches.last().map(|b| b.header_signature.clone()) {
            self.batches_by_id.entry(batch_id).or_insert(batchlist);
        }
    }
// Idempotent method for adding a BatchList
Idempotent method for adding a BatchList
Idempotent method for adding a BatchList
pub fn add(&mut self, batchlist: BatchList) {
        if let Some(batch_id) = batchlist.batches.last().map(|b| b.header_signature.clone()) {
            self.batches_by_id.entry(batch_id).or_insert(batchlist);
        }
    }
pub fn add ( & mut self , batchlist : BatchList ) { if let Some ( batch_id ) = batchlist . batches . last ( ) . map ( | b | b . header_signature . clone ( ) ) { self . batches_by_id . entry ( batch_id ) . or_insert ( batchlist ) ; } }
Idempotent method for adding a BatchList
Idempotent method for adding a BatchList
&mut self
batchlist
BatchList