pub enum BchCode {
Regular,
Long,
}Expand description
Which BCH code variant a string uses.
Determined by the total data-part length: regular for ≤93 chars, long for 96–108 chars. Lengths 94–95 are reserved-invalid.
Variants§
Regular
Regular code: BCH(93,80,8). 13-char checksum.
Long
Long code: BCH(108,93,8). 15-char checksum.
Trait Implementations§
impl Copy for BchCode
impl Eq for BchCode
impl StructuralPartialEq for BchCode
Auto Trait Implementations§
impl Freeze for BchCode
impl RefUnwindSafe for BchCode
impl Send for BchCode
impl Sync for BchCode
impl Unpin for BchCode
impl UnsafeUnpin for BchCode
impl UnwindSafe for BchCode
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