pub trait AlphaIndexExt {
// Required method
fn to_alpha(self) -> char;
}Expand description
0..26 の添字を小文字の ASCII 英字へ変換します。
usize と u8 に実装されています。26 以上の値を渡すと panic します。
§Examples
use atcoder::string::AlphaIndexExt;
assert_eq!(0_usize.to_alpha(), 'a');
assert_eq!(25_u8.to_alpha(), 'z');Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".