pub struct ReedSolomonCode<P>{ /* private fields */ }
Implementations§
source§impl<P> ReedSolomonCode<P>
impl<P> ReedSolomonCode<P>
pub fn log_inv_rate(&self) -> usize
source§impl<P> ReedSolomonCode<P>where
P: PackedField<Scalar: BinaryField>,
impl<P> ReedSolomonCode<P>where
P: PackedField<Scalar: BinaryField>,
Trait Implementations§
source§impl<P> Debug for ReedSolomonCode<P>
impl<P> Debug for ReedSolomonCode<P>
source§impl<P, F> LinearCode for ReedSolomonCode<P>where
P: PackedField<Scalar = F>,
F: BinaryField,
impl<P, F> LinearCode for ReedSolomonCode<P>where
P: PackedField<Scalar = F>,
F: BinaryField,
type P = P
type EncodeError = Error
source§fn encode_batch_inplace(
&self,
code: &mut [Self::P],
log_batch_size: usize,
) -> Result<(), Self::EncodeError>
fn encode_batch_inplace( &self, code: &mut [Self::P], log_batch_size: usize, ) -> Result<(), Self::EncodeError>
Encode a batch of interleaved messages in-place in a provided buffer. Read more
source§fn encode_inplace(&self, code: &mut [Self::P]) -> Result<(), Self::EncodeError>
fn encode_inplace(&self, code: &mut [Self::P]) -> Result<(), Self::EncodeError>
Encode a message in-place in a provided buffer. Read more
source§fn encode(&self, msg: Vec<Self::P>) -> Result<Vec<Self::P>, Self::EncodeError>
fn encode(&self, msg: Vec<Self::P>) -> Result<Vec<Self::P>, Self::EncodeError>
Encode a message provided as a vector of packed field elements.
source§fn encode_ext_batch_inplace<PE>(
&self,
code: &mut [PE],
log_batch_size: usize,
) -> Result<(), Self::EncodeError>
fn encode_ext_batch_inplace<PE>( &self, code: &mut [PE], log_batch_size: usize, ) -> Result<(), Self::EncodeError>
Encode a batch of interleaved messages of extension field elements in-place in a provided
buffer. Read more
source§fn encode_ext_inplace<PE>(
&self,
code: &mut [PE],
) -> Result<(), Self::EncodeError>
fn encode_ext_inplace<PE>( &self, code: &mut [PE], ) -> Result<(), Self::EncodeError>
Encode a message of extension field elements in-place in a provided buffer. Read more
source§fn encode_extension<PE>(
&self,
msg: Vec<PE>,
) -> Result<Vec<PE>, Self::EncodeError>
fn encode_extension<PE>( &self, msg: Vec<PE>, ) -> Result<Vec<PE>, Self::EncodeError>
Encode a message of extension field elements provided as a vector of packed field elements. Read more
Auto Trait Implementations§
impl<P> Freeze for ReedSolomonCode<P>where
<P as PackedField>::Scalar: Sized,
<<P as PackedField>::Scalar as WithUnderlier>::Underlier: Sized,
impl<P> RefUnwindSafe for ReedSolomonCode<P>where
<P as PackedField>::Scalar: Sized + RefUnwindSafe,
<<P as PackedField>::Scalar as WithUnderlier>::Underlier: Sized,
P: RefUnwindSafe,
impl<P> Send for ReedSolomonCode<P>where
<P as PackedField>::Scalar: Sized,
<<P as PackedField>::Scalar as WithUnderlier>::Underlier: Sized,
impl<P> Sync for ReedSolomonCode<P>where
<P as PackedField>::Scalar: Sized,
<<P as PackedField>::Scalar as WithUnderlier>::Underlier: Sized,
impl<P> Unpin for ReedSolomonCode<P>where
<P as PackedField>::Scalar: Sized + Unpin,
<<P as PackedField>::Scalar as WithUnderlier>::Underlier: Sized,
P: Unpin,
impl<P> UnwindSafe for ReedSolomonCode<P>where
<P as PackedField>::Scalar: Sized + UnwindSafe,
<<P as PackedField>::Scalar as WithUnderlier>::Underlier: Sized,
P: UnwindSafe,
Blanket Implementations§
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more