Skip to main content

StrResult

Type Alias StrResult 

Source
pub type StrResult<T> = Result<T, EcoString>;
Expand description

A result type with a string error message. The recommended way to create an error for this type is with the [bail!] macro.

Aliased Type§

pub enum StrResult<T> {
    Ok(T),
    Err(EcoString),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(EcoString)

Contains the error value