We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename Parser to Transformer and implement Parser as a specialization of Transformer where the Input is a string.
Parser
Transformer
Input
trait Transformer<Input> { type Output; fn transform(&self, input: Input) -> Result<Self::Output>; } trait Parser<T>: Transformer<&str, Output = T> { fn parse(&self, &str) -> Result<Self::Output>; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Rename
Parser
toTransformer
and implementParser
as a specialization ofTransformer
where theInput
is a string.The text was updated successfully, but these errors were encountered: