pub trait TokenStream { type Error; // Required method fn append( &mut self, ty: TokenType, value: Option<&str>, ) -> Result<(), Self::Error>; }