Skip to main content

Result

Type Alias Result 

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

A specialized Result type for Scope operations.

This type alias reduces boilerplate by defaulting the error type to ScopeError.

§Examples

use scope::Result;

fn do_something() -> Result<String> {
    Ok("success".to_string())
}

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ScopeError)

Contains the error value