map_error

Function map_error 

Source
pub fn map_error<T, E: Error>(
    result: Result<T, E>,
    context: &str,
) -> EditorResult<T>
Expand description

将错误转换为更具体的错误类型