17 lines
399 B
Rust
17 lines
399 B
Rust
//! TeX character-code case maps. Zero means no mapping, never deletion.
|
|
#[derive(
|
|
Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, serde::Serialize, serde::Deserialize,
|
|
)]
|
|
pub enum CaseCode {
|
|
Lower,
|
|
Upper,
|
|
}
|
|
impl CaseCode {
|
|
pub fn name(self) -> &'static str {
|
|
match self {
|
|
Self::Lower => "lccode",
|
|
Self::Upper => "uccode",
|
|
}
|
|
}
|
|
}
|