Struct unc_primitives::sharding::ReedSolomonWrapper
source · pub struct ReedSolomonWrapper { /* private fields */ }Expand description
Wrapper around reed solomon which occasionally resets the underlying reed solomon instead to work around the memory leak in reed solomon implementation https://github.com/darrenldl/reed-solomon-erasure/issues/74
Implementations§
source§impl ReedSolomonWrapper
impl ReedSolomonWrapper
pub fn new(data_shards: usize, parity_shards: usize) -> Self
pub fn reconstruct<T: ReconstructShard<Field>>( &mut self, slices: &mut [T] ) -> Result<(), Error>
pub fn data_shard_count(&self) -> usize
pub fn total_shard_count(&self) -> usize
Auto Trait Implementations§
impl !Freeze for ReedSolomonWrapper
impl RefUnwindSafe for ReedSolomonWrapper
impl Send for ReedSolomonWrapper
impl Sync for ReedSolomonWrapper
impl Unpin for ReedSolomonWrapper
impl UnwindSafe for ReedSolomonWrapper
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more