1 2 3 4 5 6
use crate::core::lexeme::Lexeme; pub trait Segmenter { fn analyze(&mut self, input: &str) -> Vec<Lexeme>; fn name(&self) -> &str; }