pub trait ReconstructShard<F: Field> {
fn len(&self) -> Option<usize>;
fn get(&mut self) -> Option<&mut [F::Elem]>;
fn get_or_initialize(
&mut self,
len: usize
) -> Result<&mut [F::Elem], Result<&mut [F::Elem], Error>>;
}
Expand description
Something which might hold a shard.
This trait is used in reconstruction, where some of the shards may be unknown.
Required Methods
Get a mutable reference to the shard data, returning None
if uninitialized.