From the scala native docs at https://scala-native.readthedocs.io/en/latest/ this is how to access struct members:
type Vec = CStruct3[Double, Double, Double]
val vec = stackalloc[Vec] // allocate c struct on stack
vec._1 = 10.0 // initialize fields
vec._2 = 20.0
vec._3 = 30.0
length(vec) // pass by reference
Does scala native provide a way to access struct members by name instead of by index? And if not is it planned as a future enhancement?
I did not find a related issue in the issue tracker at github.