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
Would it be possible to allow users to specify the error type returned from TryFrom implementations? Something like
TryFrom
#[derive(From)] struct UnknownMode(u8); #[derive(TryFrom)] #[try_from(repr, error = UnknownMode)] #[repr(u8)] enum Mode { Foo, Bar, }
where the given error has to implement From<T> where T is the type for which TryFrom<T> is being implemented.
From<T>
T
TryFrom<T>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Would it be possible to allow users to specify the error type returned from
TryFrom
implementations? Something likewhere the given error has to implement
From<T>
whereT
is the type for whichTryFrom<T>
is being implemented.The text was updated successfully, but these errors were encountered: