use std::collections::HashMap;
type LigatureStartingInput = char;
type LigatureSequence = Vec<char>;
struct Ligature {
sequence: LigatureSequence,
value: String,
}
impl Ligature {
fn new(sequence: LigatureSequence, value: &str) -> Ligature {
Ligature {
sequence,
value: value.to_string(),
}
}
}
struct Ligatures {
combinations: HashMap<LigatureStartingInput, Ligature>,
}
impl Ligatures {
fn new() -> Ligatures {
let mut combinations = HashMap::new();
combinations.insert('-', Ligature::new(vec!['>'], ""));
Ligatures { combinations }
}
}