devela::code::result

Function serr

Source
pub const fn serr<T, E>(error: E) -> OptRes<T, E> 
Expand description

Wraps the given OptRes value in a Some(Err(error)).

See also: sok.