commit 6da1cf79d90eb242e7da5318241d42279a3df3ba Author: Max Burke <max@urbanlogiq.com> Date: Sun Jan 19 14:47:28 2020 -0800 [rust] Add use declarations to Rust-generated bindings for imported FB definitions (#5645) * Bugfix for Rust generation of union fields named with language keywords
17 lines
438 B
Java
17 lines
438 B
Java
// automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
package MyGame.Example;
|
|
|
|
public final class Race {
|
|
private Race() { }
|
|
public static final byte None = -1;
|
|
public static final byte Human = 0;
|
|
public static final byte Dwarf = 1;
|
|
public static final byte Elf = 2;
|
|
|
|
public static final String[] names = { "None", "Human", "Dwarf", "Elf", };
|
|
|
|
public static String name(int e) { return names[e - None]; }
|
|
}
|
|
|