Open MikuroXina opened 2 years ago
I believe currently it only works if you use an integer literal for your dimension (see for example: https://github.com/fiberplane/fp-bindgen/blob/main/examples/example-protocol/src/main.rs#L64). But we don't evaluate other types of expressions.
I'll leave this open as a feature request, but I'm not sure how difficult this would be to implement, to be honest.
Hello, I'm using this crate for creating a plugin system for my editor application.
I have added matrix structs with deriving
Serializable
as:But it doesn't work against the intention and shows this error (formatted):
It seems that
Serializable
cannot be derived by the fixed array with length of usingconst
variable too. According to the behaviour of parsing, it is like not to accept except an integer literal.Then, I implemented
Serializable
trait manually for matrix structs as below and it works well.Is this a bug or an unsupported feature?