Android-cuttlefish cvd tool
Public Member Functions | Private Types | Private Attributes | List of all members
fmt::formatter< cuttlefish::StackTraceError > Struct Reference

#include <result.h>

Public Member Functions

constexpr auto parse (format_parse_context &ctx) -> format_parse_context::iterator
 
format_context::iterator format (const cuttlefish::StackTraceError &error, format_context &ctx) const
 

Private Types

using StackTraceEntry = cuttlefish::StackTraceEntry
 
using StackTraceError = cuttlefish::StackTraceError
 

Private Attributes

bool inner_to_outer_ = false
 
bool has_inner_fmt_spec_ = false
 
std::vector< StackTraceEntry::FormatSpecifierfmt_specs_
 
std::vector< StackTraceEntry::FormatSpecifierinner_fmt_specs_
 

Detailed Description

Specialized formatting for a collection of StackTraceEntry elements.

Can be formatted by a fmt::format string as {:specifiers}. See fmt::formatter<cuttlefish::StackTraceEntry> for the format specifiers of individual entries. By default the specifier list is passed down to all indivudal entries, with the following additional rules. The ^ specifier will change the ordering from inner-to-outer instead of outer-to-inner, and using the / specifier like <abc>/<xyz> will apply <xyz> only to the innermost stack entry, and <abc> to all other stack entries.

Member Typedef Documentation

◆ StackTraceEntry

using fmt::formatter< cuttlefish::StackTraceError >::StackTraceEntry = cuttlefish::StackTraceEntry
private

◆ StackTraceError

using fmt::formatter< cuttlefish::StackTraceError >::StackTraceError = cuttlefish::StackTraceError
private

Member Function Documentation

◆ format()

fmt::format_context::iterator fmt::formatter< cuttlefish::StackTraceError >::format ( const cuttlefish::StackTraceError error,
format_context &  ctx 
) const

◆ parse()

constexpr auto fmt::formatter< cuttlefish::StackTraceError >::parse ( format_parse_context &  ctx) -> format_parse_context::iterator
inlineconstexpr

Member Data Documentation

◆ fmt_specs_

std::vector<StackTraceEntry::FormatSpecifier> fmt::formatter< cuttlefish::StackTraceError >::fmt_specs_
private

◆ has_inner_fmt_spec_

bool fmt::formatter< cuttlefish::StackTraceError >::has_inner_fmt_spec_ = false
private

◆ inner_fmt_specs_

std::vector<StackTraceEntry::FormatSpecifier> fmt::formatter< cuttlefish::StackTraceError >::inner_fmt_specs_
private

◆ inner_to_outer_

bool fmt::formatter< cuttlefish::StackTraceError >::inner_to_outer_ = false
private

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