Skip to main content

ResultER

Type Alias ResultER 

Source
pub type ResultER<T> = Result<T, ErrorReport>;
Expand description

Convenience type alias for Result<T, ErrorReport>.

ER stands for ErrorReport. Use this as the return type for functions that can fail with structured error reports.

§Example

use charon_error::prelude::*;

fn do_work() -> ResultER<String> {
    Ok("done".to_owned())
}

Aliased Type§

pub enum ResultER<T> {
    Ok(T),
    Err(ErrorReport),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ErrorReport)

Contains the error value