Struct reed_solomon_simd::DecoderResult
source · pub struct DecoderResult<'a> { /* private fields */ }Expand description
Result of decoding. Contains the restored original shards.
This struct is created by ReedSolomonDecoder::decode
and RateDecoder::decode.
Implementations§
source§impl<'a> DecoderResult<'a>
impl<'a> DecoderResult<'a>
sourcepub fn restored_original(&self, index: usize) -> Option<&[u8]>
pub fn restored_original(&self, index: usize) -> Option<&[u8]>
Returns restored original shard with given index
or None if given index doesn’t correspond to
a missing original shard.
sourcepub fn restored_original_iter(&self) -> RestoredOriginal<'_> ⓘ
pub fn restored_original_iter(&self) -> RestoredOriginal<'_> ⓘ
Returns iterator over all restored original shards and their indexes, ordered by indexes.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DecoderResult<'a>
impl<'a> Send for DecoderResult<'a>
impl<'a> Sync for DecoderResult<'a>
impl<'a> Unpin for DecoderResult<'a>
impl<'a> !UnwindSafe for DecoderResult<'a>
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