1 2 3 4 5 6 7 8 9 10 11
use crate::prelude::Alternative; impl<'a> Alternative<'a, char> for String { fn empty() -> Self { String::new() } fn otherwise(self, other: Self) -> Self { self + &other } }