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

Normalized value-field semantics shared by all formatting frontends. 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

Normalized value-field semantics shared by all formatting frontends.

所有格式前端共用的规范化值字段语义。

Each FormatField still describes one source value conversion. The compile-time backend may lower it either to a narrow opcode with only the required immediates, or to GenericField plus the full type/flags/fill/width/precision payload. type chooses the runtime render semantics, pack chooses the packed argument storage, and rule chooses the compile-time argument matching rule. 每个 FormatField 仍然描述一个源级值转换。编译期后端可以把它降为只携带必要 立即数的窄操作码,也可以降为 GenericField 加完整的 type/flags/fill/width/precision 载荷。type 决定运行期写出语义,pack 决定参数如何 打包,rule 决定编译期实参匹配规则。

Definition at line 366 of file format_protocol.hpp.

Field Documentation

◆ fill

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

field fill character / 字段填充字符

Definition at line 373 of file format_protocol.hpp.

◆ flags

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

FormatFlag bitset / 字段修饰位集合

Definition at line 372 of file format_protocol.hpp.

◆ pack

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

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

Definition at line 369 of file format_protocol.hpp.

369{};

◆ precision

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

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

Definition at line 375 of file format_protocol.hpp.

◆ rule

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

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

Definition at line 370 of file format_protocol.hpp.

◆ type

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

semantic render category / 语义写出类别

Definition at line 368 of file format_protocol.hpp.

◆ width

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

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

Definition at line 374 of file format_protocol.hpp.


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