Enum NoChecksum
pub enum NoChecksum {}
Expand description
The “null checksum” used on bech32 strings for which we want to do no checksum checking.
Trait Implementations§
§impl Checksum for NoChecksum
impl Checksum for NoChecksum
§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
§const CHECKSUM_LENGTH: usize = 0usize
const CHECKSUM_LENGTH: usize = 0usize
The number of characters in the checksum. Read more
§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
§const TARGET_RESIDUE: PackedNull = PackedNull
const TARGET_RESIDUE: PackedNull = PackedNull
The residue, modulo the generator polynomial, that a valid codeword will have.
§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
§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
§impl Clone for NoChecksum
impl Clone for NoChecksum
§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 more§impl Hash for NoChecksum
impl Hash for NoChecksum
§impl Ord for NoChecksum
impl Ord for NoChecksum
§impl PartialEq for NoChecksum
impl PartialEq for NoChecksum
§impl PartialOrd for NoChecksum
impl PartialOrd for NoChecksum
impl Copy for NoChecksum
impl Eq for NoChecksum
impl StructuralPartialEq for NoChecksum
Auto Trait Implementations§
impl Freeze for NoChecksum
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more