moon/fory Apache Fory · MoonBit

API · fn

compare_field

Schemas · defined at struct.mbt:206

pub fn compare_field(FieldMeta, FieldMeta) -> Int32

Which of two fields comes first, by the rules the specification lays down so that every language writes the same order.

Three groups — primitives that cannot be absent, primitives that can, and everything else — and inside them the keys the specification names: for the primitives, fixed width before compressed, then width descending, then type ID, then identifier; for the rest, the identifier alone.

Generated from src/pkg.generated.mbti and the doc comments beside this declaration.