Type Alias NothingOrError

Source
pub type NothingOrError<E> = Result<(), E>;
Expand description

Returned when something may return either nothing or an error.

Aliased Type§

pub enum NothingOrError<E> {
    Ok(()),
    Err(E),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(E)

Contains the error value