pub struct Bech32 { /* private fields */ }
Expand description
Bech32 encoder/decoder
Implementations§
Source§impl Bech32
impl Bech32
Sourcepub fn lower_case() -> Self
pub fn lower_case() -> Self
Decode lower case Bech32 strings
Sourcepub fn upper_case() -> Self
pub fn upper_case() -> Self
Decode upper case Bech32 strings
Sourcepub fn new(charset: [char; 32], separator: char) -> Self
pub fn new(charset: [char; 32], separator: char) -> Self
Create a Bech32
encoder with the given separator character
Panics if the separator character is invalid
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bech32
impl RefUnwindSafe for Bech32
impl Send for Bech32
impl Sync for Bech32
impl Unpin for Bech32
impl UnwindSafe for Bech32
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