statue 0.3.1

Easier way to query selectors for static HTML pages.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub(crate) trait ResultLike<T, E> {
    fn map<U, F: FnOnce(T) -> U>(self, f: F) -> Result<U, E>;
    fn map_err<F: FnOnce(E) -> E>(self, f: F) -> Result<T, E>;
}

impl<T, E> ResultLike<T, E> for Result<T, E> {
    fn map<U, F: FnOnce(T) -> U>(self, f: F) -> Result<U, E> {
        self.map(f)
    }
    fn map_err<F: FnOnce(E) -> E>(self, f: F) -> Result<T, E> {
        self.map_err(f)
    }
}