|
parcel 0.2.2
Wrappable, wire-transferable C++23 value system with JSON serialization
|
std::formatter specializations for parcel::ICell and parcel::cell_t.
More...


Go to the source code of this file.
std::formatter specializations for parcel::ICell and parcel::cell_t.
Lets std::format("{}", cell) work on any cell. The empty spec calls to_string() (compact); the alt-form # flag calls to_formatted_string() (multi-line). Concrete cells derived from ICell are picked up via a constrained specialization.
Format specs supported on ICell / cell_t:
{} — compact to_string(){:#} — multi-line to_formatted_string(){:j} — compact JSON via to_json().dump(){:j2} — pretty JSON via to_json().dump(2){:k} — kind id only