ResolutionError::map_parse
docs
This commit is contained in:
parent
80b349b532
commit
85b9ba0701
@ -10,6 +10,7 @@ pub enum ResolutionError<L, P> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<L, P> 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> {
|
pub fn map_parse<Px>(self, f: impl FnOnce(P) -> Px) -> ResolutionError<L, Px> {
|
||||||
match self {
|
match self {
|
||||||
Self::Lookup(l) => ResolutionError::Lookup(l),
|
Self::Lookup(l) => ResolutionError::Lookup(l),
|
||||||
|
Loading…
Reference in New Issue
Block a user