async-debug-derive 0.1.3

Derive macro for async-debug: Debug structs and enums containing values that require an async call to render
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub trait ZipResult<T, E> {
    fn zip_result<U>(self, second: Result<U, E>) -> Result<(T, U), E>;
}

impl<T, E> ZipResult<T, E> for Result<T, E> {
    fn zip_result<U>(self, second: Result<U, E>) -> Result<(T, U), E> {
        match self {
            Err(e) => Err(e),
            Ok(first) => match second {
                Err(e) => Err(e),
                Ok(second) => Ok((first, second)),
            },
        }
    }
}