The exactly_one()
function was added in #310:
exactly_one(self) -> Result<Self::Item, ExactlyOneError<Self>>
For using the early return operator ?
on its result, it would be nice if ExactlyOneError
would implement Error
. Or is there any reason not to?
cc @Xaeroxe @Centril @bluss