presentations/highlight-js/test/detect/rust/default.txt

17 lines
285 B
Text
Raw Permalink Normal View History

2018-12-07 08:48:05 -06:00
#[derive(Debug)]
pub enum State {
Start,
Transient,
Closed,
}
impl From<&'a str> for State {
fn from(s: &'a str) -> Self {
match s {
"start" => State::Start,
"closed" => State::Closed,
_ => unreachable!(),
}
}
}