ps-ecc 0.1.0-9

Generates Reed-Solomon error correction codes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod implementations;
mod methods;

use std::ops::Range;

use crate::cow::Cow;

/// A decoded codeword exposing the message bytes.
///
/// Dereferences to the message portion of the codeword, selected by
/// `range`. The fields are crate-internal so that a range outside the
/// codeword, which would make dereferencing panic, cannot be constructed
/// by callers.
#[derive(Debug, Hash, PartialEq, Eq)]
pub struct Codeword<'lt> {
    pub(crate) codeword: Cow<'lt>,
    pub(crate) range: Range<usize>,
}