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

Debug<reloco::expected<void, E>>: like the primary Debug<expected<T, E>> template above, but the Ok case has no value to recurse into (expected<void, E>::value() returns void), so it is printed as a bare Ok – matching Rust's Result<(), E> Debug output, Ok(())... except reloco has no unit/() type to print, so this omits the parentheses' contents entirely rather than inventing one. More...

#include <reloco_debug.hpp>

Static Public Member Functions

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

Detailed Description

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

Debug<reloco::expected<void, E>>: like the primary Debug<expected<T, E>> template above, but the Ok case has no value to recurse into (expected<void, E>::value() returns void), so it is printed as a bare Ok – matching Rust's Result<(), E> Debug output, Ok(())... except reloco has no unit/() type to print, so this omits the parentheses' contents entirely rather than inventing one.

Member Function Documentation

◆ format()

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

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