Add fmt field tags to core:container/small_array.Small_Array.

This enables fmt (and other packages that use it, like log) to format
Small_Arrays with only the used portion of the array.
This commit is contained in:
Barinzaya
2026-03-15 07:11:35 -04:00
parent 117e3a7b5a
commit e5c7ab0660

View File

@@ -21,7 +21,7 @@ Example:
}
*/
Small_Array :: struct($N: int, $T: typeid) where N >= 0 {
data: [N]T,
data: [N]T `fmt:",len"`,
len: int,
}