minidsp 0.1.4

A control interface for some MiniDSP products
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::result::Result;

pub trait ErrInto<T, ESource> {
    fn err_into<EDest>(self) -> Result<T, EDest>
    where
        ESource: Into<EDest>;
}

impl<T, ESource> ErrInto<T, ESource> for Result<T, ESource> {
    fn err_into<EDest>(self) -> Result<T, EDest>
    where
        ESource: Into<EDest>,
    {
        self.map_err(|e| e.into())
    }
}