[][src]Function solana_reed_solomon_erasure::option_shards_into_shards

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

Transforms vector of option shards into vector of shards.

Remarks

Each shard is moved rather than cloned.

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.