Files
Document-Management-System-…/vendor/scrivo/highlight.php/test/detect/rust/default.txt
2021-04-07 19:25:18 -04:00

17 lines
285 B
Plaintext
Vendored

#[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!(),
}
}
}