[−][src]Function bech32::encode
pub fn encode<T: AsRef<[u5]>>(hrp: &str, data: T) -> Result<String, Error>
Encode a bech32 payload to string.
Errors
- If [check_hrp] returns an error for the given HRP.
Deviations from standard
- No length limits are enforced for the data part