Closed limitLiu closed 4 weeks ago
Hi, IIRC we have loosen the type constraint, such that users can feel more natural.
IIRC, a Uint8List
in Dart implements
the List<int>
. Thus, you can provide both a Uint8List
and a List<int>
into that argument.
Similarly, the return type when having Vec<u8>
may be List<int>
, but indeed it is a Uint8List
. For this, one way to check is to get a real return object and print(thatObject.runtimeType)
and see it.
If that does not hold, feel free to ping me and then it is a real bug!
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.
Describe the bug
I saw in the doc that
Vec and array
Steps to reproduce
The issue can be reproduced by running flutter_rust_bridge_codegen generate with version v2.0.0-dev.37.
Logs
Expected behavior
I hope it works as described in the doc.
Generated binding code
No response
OS
macOS
Version of
flutter_rust_bridge_codegen
2.0.0-dev.37
Flutter info
No response
Version of
clang++
No response
Additional context
No response