libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::Print::FormatField Struct Reference

一条已经决定完毕、运行期 writer 知道如何打印的值字段。 / One fully-decided value field that the runtime writer knows how to print. More...

#include <format_protocol.hpp>

Data Fields

FormatType type = FormatType::End
 semantic render category / 语义写出类别
 
FormatPackKind pack {}
 packed runtime storage kind / 运行期打包存储类别
 
FormatArgumentRule rule
 compile-time argument rule / 编译期实参匹配规则
 
uint8_t flags = 0
 FormatFlag bitset / 字段修饰位集合
 
char fill = ' '
 field fill character / 字段填充字符
 
uint8_t width = 0
 parsed field width / 已解析的字段宽度
 
uint8_t precision = 0xFF
 parsed precision, or unspecified / 已解析精度,或未指定
 

Detailed Description

一条已经决定完毕、运行期 writer 知道如何打印的值字段。 / One fully-decided value field that the runtime writer knows how to print.

It says:

  • which printing path to use
  • how the argument was packed
  • which compile-time rule accepted that argument
  • which width/fill/precision flags still matter at runtime 它描述的是:
  • 该走哪条打印路径
  • 参数当时是怎么打包的
  • 编译期是按哪条规则接受这个参数的
  • 以及运行期仍然需要的宽度/填充/精度信息

Definition at line 577 of file format_protocol.hpp.

Field Documentation

◆ fill

char LibXR::Print::FormatField::fill = ' '

field fill character / 字段填充字符

Definition at line 584 of file format_protocol.hpp.

◆ flags

uint8_t LibXR::Print::FormatField::flags = 0

FormatFlag bitset / 字段修饰位集合

Definition at line 583 of file format_protocol.hpp.

◆ pack

FormatPackKind LibXR::Print::FormatField::pack {}

packed runtime storage kind / 运行期打包存储类别

Definition at line 580 of file format_protocol.hpp.

580{};

◆ precision

uint8_t LibXR::Print::FormatField::precision = 0xFF

parsed precision, or unspecified / 已解析精度,或未指定

Definition at line 586 of file format_protocol.hpp.

◆ rule

FormatArgumentRule LibXR::Print::FormatField::rule
Initial value:
=
FormatArgumentRule::None

compile-time argument rule / 编译期实参匹配规则

Definition at line 581 of file format_protocol.hpp.

◆ type

FormatType LibXR::Print::FormatField::type = FormatType::End

semantic render category / 语义写出类别

Definition at line 579 of file format_protocol.hpp.

◆ width

uint8_t LibXR::Print::FormatField::width = 0

parsed field width / 已解析的字段宽度

Definition at line 585 of file format_protocol.hpp.


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