Result

Type Alias Result 

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

A type alias for Result<T, TermError>.

This is the standard Result type used throughout the Term library.

§Examples

use term_guard::error::Result;

fn validate_data() -> Result<()> {
    // validation logic here
    Ok(())
}

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(TermError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(TermError)

Contains the error value