Reputation: 5111
struct Parser;
impl Parser {
const ALPHABETS_UPPERCASE: [char; 26] = [
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S',
'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
];
fn get_alphabet(&self) {
self::..
}
}
How to access ALPHABETS_UPPERCASE
inside get_alphabet
function?
Upvotes: 1
Views: 59