|
microfmt
Zero-allocation C++ formatting for constrained environments
|
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 |
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.
|
inlinestaticnoexcept |