priv/errors

Functions

pub fn assert_ok(result: Result(a, String)) -> a
pub fn map_error(
  result: Result(a, b),
  error_message: String,
) -> Result(a, String)
pub fn map_messages(
  result: Result(a, b),
  success_message: String,
  error_message: String,
) -> Result(String, String)
pub fn print_error(
  result: Result(a, String),
) -> Result(a, String)
pub fn print_result(
  result: Result(String, String),
) -> Result(String, String)
Search Document