Enum bech32::primitives::NoChecksum
source · pub enum NoChecksum {}
Expand description
The “null checksum” used on bech32 strings for which we want to do no checksum checking.
Trait Implementations§
source§impl Checksum for NoChecksum
impl Checksum for NoChecksum
§type MidstateRepr = PackedNull
type MidstateRepr = PackedNull
An unsigned integer type capable of holding a packed version of the generator
polynomial (without its leading 1) and target residue (which will have the
same width). Read more
source§const CODE_LENGTH: usize = 18_446_744_073_709_551_615usize
const CODE_LENGTH: usize = 18_446_744_073_709_551_615usize
The length of the code. Read more
source§const CHECKSUM_LENGTH: usize = 0usize
const CHECKSUM_LENGTH: usize = 0usize
The number of characters in the checksum. Read more
source§const GENERATOR_SH: [PackedNull; 5] = _
const GENERATOR_SH: [PackedNull; 5] = _
The coefficients of the generator polynomial, except the leading monic term,
in “big-endian” (highest-degree coefficients get leftmost bits) order, along
with the 4 shifts of the generator. Read more
source§const TARGET_RESIDUE: PackedNull = PackedNull
const TARGET_RESIDUE: PackedNull = PackedNull
The residue, modulo the generator polynomial, that a valid codeword will have.
source§fn sanity_check()
fn sanity_check()
Sanity checks that the various constants of the trait are set in a way that they
are consistent with each other. Read more
source§impl Clone for NoChecksum
impl Clone for NoChecksum
source§fn clone(&self) -> NoChecksum
fn clone(&self) -> NoChecksum
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Hash for NoChecksum
impl Hash for NoChecksum
source§impl Ord for NoChecksum
impl Ord for NoChecksum
source§fn cmp(&self, other: &NoChecksum) -> Ordering
fn cmp(&self, other: &NoChecksum) -> Ordering
1.21.0 · 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 NoChecksum
impl PartialEq for NoChecksum
source§fn eq(&self, other: &NoChecksum) -> bool
fn eq(&self, other: &NoChecksum) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NoChecksum
impl PartialOrd for NoChecksum
source§fn partial_cmp(&self, other: &NoChecksum) -> Option<Ordering>
fn partial_cmp(&self, other: &NoChecksum) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for NoChecksum
impl Eq for NoChecksum
impl StructuralPartialEq for NoChecksum
Auto Trait Implementations§
impl RefUnwindSafe for NoChecksum
impl Send for NoChecksum
impl Sync for NoChecksum
impl Unpin for NoChecksum
impl UnwindSafe for NoChecksum
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