fn find_bech32_prefix(bech32: &str) -> &str {
    // Split at the last occurrence of the separator character '1'.
    match bech32.rfind("1") {
        None => bech32,
        Some(sep) => bech32.split_at(sep).0,
    }
}
/// Extract the bech32 prefix.
/// Returns the same slice when no prefix is found.
Extract the bech32 prefix.
Returns the same slice when no prefix is found.
Extract the bech32 prefix . Returns the same slice when no prefix is found .
fn find_bech32_prefix(bech32: &str) -> &str {
    // Split at the last occurrence of the separator character '1'.
    match bech32.rfind("1") {
        None => bech32,
        Some(sep) => bech32.split_at(sep).0,
    }
}
fn find_bech32_prefix ( bech32 : & str ) -> & str { // Split at the last occurrence of the separator character '1'. match bech32 . rfind ( " " ) { None => bech32 , Some ( sep ) => bech32 . split_at ( sep ) . 0 , } }
Extract the bech32 prefix.
Extract the bech32 prefix .
bech32
&str
bech32
&str