Struct reed_solomon_novelpoly::CodeParams[][src]

pub struct CodeParams { /* fields omitted */ }

Params for the encoder / decoder derived from a target validator count.

Implementations

impl CodeParams[src]

pub fn derive_parameters(n: usize, k: usize) -> Result<Self>[src]

Create a new reed solomon erasure encoding wrapper k the intended number of data shards needed to recover. n the intended number of resulting shards.

Assures that the derived paramters retain at most the given coding rate, and as such assure recoverability with at least an equiv fraction as provided by the input n, and k parameterset.

pub fn make_encoder(&self) -> ReedSolomon[src]

Trait Implementations

impl Clone for CodeParams[src]

impl Copy for CodeParams[src]

impl Debug for CodeParams[src]

impl Eq for CodeParams[src]

impl PartialEq<CodeParams> for CodeParams[src]

impl StructuralEq for CodeParams[src]

impl StructuralPartialEq for CodeParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.