logo
pub trait Base62 {
    fn base62(&self) -> String;
}
Expand description

Encodes a u64 hash to base-62 string.

Required methods

Encodes a u64 hash to base-62 string.

Implementations on Foreign Types

Since 52*62^10 > 2^64, so 11 digit base62 string can represent u64 hash.

Since 52*62^5 > 2^32, so 6 digit base62 string can represent u32 hash.

Implementors