#[repr(u8)]pub enum OverlapFactor {
Simple = 0,
Double = 64,
Triple = 128,
Quadruple = 192,
}Expand description
Approximate number of distinct codewords covering each byte.
Integer division of the segment stride makes coverage uneven for the overlapping factors: bytes near segment boundaries may be covered one time more, and leading bytes fewer times, than the nominal count.
Variants§
Simple = 0
Each byte is covered once (plain Reed-Solomon, no overlap).
Double = 64
Each byte is covered approximately twice.
Triple = 128
Each byte is covered approximately three times.
Quadruple = 192
Each byte is covered approximately four times.
Implementations§
Source§impl OverlapFactor
impl OverlapFactor
Source§impl OverlapFactor
impl OverlapFactor
Trait Implementations§
Source§impl Clone for OverlapFactor
impl Clone for OverlapFactor
Source§fn clone(&self) -> OverlapFactor
fn clone(&self) -> OverlapFactor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OverlapFactor
Source§impl Debug for OverlapFactor
impl Debug for OverlapFactor
Source§impl Default for OverlapFactor
impl Default for OverlapFactor
Source§fn default() -> OverlapFactor
fn default() -> OverlapFactor
Returns the “default value” for a type. Read more
impl Eq for OverlapFactor
Source§impl From<OverlapFactor> for u8
impl From<OverlapFactor> for u8
Source§fn from(factor: OverlapFactor) -> Self
fn from(factor: OverlapFactor) -> Self
Converts to this type from the input type.
Source§impl From<u8> for OverlapFactor
impl From<u8> for OverlapFactor
Source§impl Hash for OverlapFactor
impl Hash for OverlapFactor
Source§impl Ord for OverlapFactor
impl Ord for OverlapFactor
Source§fn cmp(&self, other: &OverlapFactor) -> Ordering
fn cmp(&self, other: &OverlapFactor) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OverlapFactor
impl PartialEq for OverlapFactor
Source§impl PartialOrd for OverlapFactor
impl PartialOrd for OverlapFactor
impl StructuralPartialEq for OverlapFactor
Auto Trait Implementations§
impl Freeze for OverlapFactor
impl RefUnwindSafe for OverlapFactor
impl Send for OverlapFactor
impl Sync for OverlapFactor
impl Unpin for OverlapFactor
impl UnsafeUnpin for OverlapFactor
impl UnwindSafe for OverlapFactor
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