pub fn shards_to_option_shards(shards: &[Shard]) -> Vec<Option<Shard>>
Expand description

Transforms slice 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 reconstrct_shards or reconstruct_data_shards.