[][src]Function solana_reed_solomon_erasure::shards_into_option_shards

pub fn shards_into_option_shards(shards: Vec<Shard>) -> Vec<Option<Shard>>

Transforms vector of shards into vector of option shards.

Remarks

Each shard is moved rather than cloned.

This is mainly useful when you want to repair a vector of shards using reconstrct_shards or reconstruct_data_shards.