Function reed_solomon_erasure::shards_to_option_shards [] [src]

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

Transforms vector of shards to vector of option shards.

Remarks

Each shard is cloned rather than moved, which may be slow.

This is mainly useful when you want to repair a vector of shards using decode_missing.