ResolutionError::map_parse docs

This commit is contained in:
AF 2023-07-01 00:22:52 +00:00
parent 80b349b532
commit 85b9ba0701

View File

@ -10,6 +10,7 @@ pub enum ResolutionError<L, P> {
}
impl<L, P> ResolutionError<L, P> {
/// Maps only the [`ResolutionError::Parse`] variant of the overall error.
pub fn map_parse<Px>(self, f: impl FnOnce(P) -> Px) -> ResolutionError<L, Px> {
match self {
Self::Lookup(l) => ResolutionError::Lookup(l),