Skip to main content

AddressExt

Trait AddressExt 

Source
pub trait AddressExt: Borrow<Address> {
    // Provided method
    fn is_uppercasable(&self) -> bool { ... }
}
Expand description

Extension trait for Address.

Provided Methods§

Source

fn is_uppercasable(&self) -> bool

Whether the address uses a case-insensitive bech32(m) encoding and can therefore be safely upper-cased (e.g. for the compact alphanumeric QR mode). Base58 addresses (P2PKH/P2SH) are case-sensitive, and unknown future witness versions are treated conservatively as not uppercasable.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AddressExt for Address

Implementors§