mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
* Adds fields for possibly reserved words to rust_namer_test * Removes size and alignment as rust reserved words
38 lines
538 B
Plaintext
38 lines
538 B
Plaintext
namespace RustNamerTest;
|
|
|
|
table FieldTable {}
|
|
|
|
union FieldUnion {
|
|
f :FieldTable (id: 0),
|
|
}
|
|
|
|
table RootTable {
|
|
field42 :FieldUnion (id: 1);
|
|
}
|
|
|
|
table PlayerStatEvent {}
|
|
table PlayerSpectate {}
|
|
table PlayerInputChange {}
|
|
|
|
union GameMessage
|
|
{
|
|
PlayerStatEvent,
|
|
PlayerSpectate,
|
|
PlayerInputChange
|
|
}
|
|
|
|
table GameMessageWrapper
|
|
{
|
|
Message:GameMessage;
|
|
}
|
|
|
|
struct PossiblyReservedWords
|
|
{
|
|
// Keywords reserved by Rust namer
|
|
follow: float;
|
|
push: float;
|
|
// Keywords no longer reserved by Rust namer
|
|
size: float;
|
|
alignment: float;
|
|
}
|