StatsResult

Type Alias StatsResult 

Source
pub type StatsResult<T> = Result<T, StatsError>;
Expand description

Convenience type alias for Result with StatsError

This is the standard return type for functions that can fail in the rs-stats library.

§Examples

use rs_stats::error::StatsResult;

fn might_fail() -> StatsResult<f64> {
    Ok(42.0)
}

Aliased Type§

pub enum StatsResult<T> {
    Ok(T),
    Err(StatsError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(StatsError)

Contains the error value