Fixed rust nested flatbuffers for tables other than self (#6062)

* Fixed rust nested flatbuffers for tables other than self

* replaced lifetimes

* Use WrapInNameSpace and also update samples

Co-authored-by: Casper Neo <cneo@google.com>
This commit is contained in:
Casper
2020-10-10 11:49:02 -07:00
committed by GitHub
parent cb971eece8
commit 543c1bbeba
4 changed files with 79 additions and 76 deletions

View File

@@ -15,13 +15,13 @@ namespace MyGame.Example;
attribute "priority";
/// Composite components of Monster color.
enum Color:ubyte (bit_flags) {
enum Color:ubyte (bit_flags) {
Red = 0, // color Red = (1u << 0)
/// \brief color Green
/// Green is bit_flag with value (1u << 1)
Green,
Green,
/// \brief color Blue (1u << 3)
Blue = 3,
Blue = 3,
}
enum Race:byte {