pub enum Output {
Null,
String(String),
}
impl Output {
pub fn push(&mut self, s: &str) {
match self {
Output::Null => {}
Output::String(o) => o.push_str(s),
}
}
pub fn into_inner(self) -> String {
match self {
Output::Null => String::new(),
Output::String(s) => s,
}
}
}