microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
reloco::Debug< expected< T, E > > Struct Template Reference

Debug<reloco::result<T>> (= Debug<reloco::expected<T, reloco::error>>): Rust's Result debug convention, Ok(value) or Err(error), recursing into the held value/error via microfmt::as_debug so each side always prefers its own Debug<T> over formatter<T>/Display<T> (matching the "`Debug` always recurses via `Debug`" rule generated struct dumps also follow, see reflect_annotate.hpp). More...

#include <reloco_debug.hpp>

Static Public Member Functions

static void format (const expected< T, E > &val, const sink &out) noexcept
 

Detailed Description

template<typename T, typename E>
struct reloco::Debug< expected< T, E > >

Debug<reloco::result<T>> (= Debug<reloco::expected<T, reloco::error>>): Rust's Result debug convention, Ok(value) or Err(error), recursing into the held value/error via microfmt::as_debug so each side always prefers its own Debug<T> over formatter<T>/Display<T> (matching the "`Debug` always recurses via `Debug`" rule generated struct dumps also follow, see reflect_annotate.hpp).

Member Function Documentation

◆ format()

template<typename T , typename E >
static void reloco::Debug< expected< T, E > >::format ( const expected< T, E > &  val,
const sink &  out 
)
inlinestaticnoexcept

The documentation for this struct was generated from the following file: