Trait Base62
Source pub trait Base62 {
// Required method
fn base62(&self) -> String;
}
Expand description
Encodes a u64 hash to base-62 string.
Encodes a u64 hash to base-62 string.
Since 52*62^5 > 2^32
, so 6 digit base62 string can represent u32 hash.
Since 52*62^10 > 2^64
, so 11 digit base62 string can represent u64 hash.