[−][src]Function solana_reed_solomon_erasure::option_shards_to_shards
pub fn option_shards_to_shards(shards: &[Option<Shard>]) -> Vec<Shard>
Transforms slice of option shards to vector of shards.
Remarks
Each shard is cloned rather than moved, which may be slow.
This is mainly useful when you want to convert result of
reconstrct_shards
or reconstruct_data_shards
to the
more usable arrangement.
Panics when any of the shards is missing.