Lines Matching full:pub
4 pub mod my_game {
14 pub mod sample {
28 pub enum Color {
82 pub fn enum_name_color(e: Color) -> &'static str { in enum_name_color()
90 pub enum Equipment {
141 pub fn enum_name_equipment(e: Equipment) -> &'static str { in enum_name_equipment()
146 pub struct EquipmentUnionTableOffset {}
150 pub struct Vec3 {
154 } // pub struct Vec3
195 pub fn new<'a>(_x: f32, _y: f32, _z: f32) -> Self { in new()
203 pub fn x<'a>(&'a self) -> f32 { in x()
206 pub fn y<'a>(&'a self) -> f32 { in y()
209 pub fn z<'a>(&'a self) -> f32 { in z()
214 pub enum MonsterOffset {}
217 pub struct Monster<'a> {
218 pub _tab: flatbuffers::Table<'a>,
233 pub fn init_from_table(table: flatbuffers::Table<'a>) -> Self { in init_from_table()
239 pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr>( in create()
255 pub const VT_POS: flatbuffers::VOffsetT = 4;
256 pub const VT_MANA: flatbuffers::VOffsetT = 6;
257 pub const VT_HP: flatbuffers::VOffsetT = 8;
258 pub const VT_NAME: flatbuffers::VOffsetT = 10;
259 pub const VT_INVENTORY: flatbuffers::VOffsetT = 14;
260 pub const VT_COLOR: flatbuffers::VOffsetT = 16;
261 pub const VT_WEAPONS: flatbuffers::VOffsetT = 18;
262 pub const VT_EQUIPPED_TYPE: flatbuffers::VOffsetT = 20;
263 pub const VT_EQUIPPED: flatbuffers::VOffsetT = 22;
266 pub fn pos(&'a self) -> Option<&'a Vec3> { in pos()
270 pub fn mana(&'a self) -> i16 { in mana()
274 pub fn hp(&'a self) -> i16 { in hp()
278 pub fn name(&'a self) -> Option<&'a str> { in name()
282 pub fn inventory(&'a self) -> Option<&'a [u8]> { in inventory()
286 pub fn color(&'a self) -> Color { in color()
290 …pub fn weapons(&'a self) -> Option<flatbuffers::Vector<flatbuffers::ForwardsUOffset<Weapon<'a>>>> { in weapons()
294 pub fn equipped_type(&'a self) -> Equipment { in equipped_type()
298 pub fn equipped(&'a self) -> Option<flatbuffers::Table<'a>> { in equipped()
303 pub fn equipped_as_weapon(&'a self) -> Option<Weapon> { in equipped_as_weapon()
313 pub struct MonsterArgs<'a> {
314 pub pos: Option<&'a Vec3>,
315 pub mana: i16,
316 pub hp: i16,
317 pub name: Option<flatbuffers::WIPOffset<&'a str>>,
318 pub inventory: Option<flatbuffers::WIPOffset<flatbuffers::Vector<'a , u8>>>,
319 pub color: Color,
320 …pub weapons: Option<flatbuffers::WIPOffset<flatbuffers::Vector<'a , flatbuffers::ForwardsUOffset<W…
321 pub equipped_type: Equipment,
322 pub equipped: Option<flatbuffers::WIPOffset<flatbuffers::UnionWIPOffset>>,
340 pub struct MonsterBuilder<'a: 'b, 'b> {
346 pub fn add_pos(&mut self, pos: &'b Vec3) { in add_pos()
350 pub fn add_mana(&mut self, mana: i16) { in add_mana()
354 pub fn add_hp(&mut self, hp: i16) { in add_hp()
358 pub fn add_name(&mut self, name: flatbuffers::WIPOffset<&'b str>) { in add_name()
362 pub fn add_inventory(&mut self, inventory: flatbuffers::WIPOffset<flatbuffers::Vector<'b , u8>>) { in add_inventory()
366 pub fn add_color(&mut self, color: Color) { in add_color()
370 …pub fn add_weapons(&mut self, weapons: flatbuffers::WIPOffset<flatbuffers::Vector<'b , flatbuffers… in add_weapons()
374 pub fn add_equipped_type(&mut self, equipped_type: Equipment) { in add_equipped_type()
378 pub fn add_equipped(&mut self, equipped: flatbuffers::WIPOffset<flatbuffers::UnionWIPOffset>) { in add_equipped()
382 pub fn new(_fbb: &'b mut flatbuffers::FlatBufferBuilder<'a>) -> MonsterBuilder<'a, 'b> { in new()
390 pub fn finish(self) -> flatbuffers::WIPOffset<Monster<'a>> { in finish()
396 pub enum WeaponOffset {}
399 pub struct Weapon<'a> {
400 pub _tab: flatbuffers::Table<'a>,
415 pub fn init_from_table(table: flatbuffers::Table<'a>) -> Self { in init_from_table()
421 pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr>( in create()
430 pub const VT_NAME: flatbuffers::VOffsetT = 4;
431 pub const VT_DAMAGE: flatbuffers::VOffsetT = 6;
434 pub fn name(&'a self) -> Option<&'a str> { in name()
438 pub fn damage(&'a self) -> i16 { in damage()
443 pub struct WeaponArgs<'a> {
444 pub name: Option<flatbuffers::WIPOffset<&'a str>>,
445 pub damage: i16,
456 pub struct WeaponBuilder<'a: 'b, 'b> {
462 pub fn add_name(&mut self, name: flatbuffers::WIPOffset<&'b str>) { in add_name()
466 pub fn add_damage(&mut self, damage: i16) { in add_damage()
470 pub fn new(_fbb: &'b mut flatbuffers::FlatBufferBuilder<'a>) -> WeaponBuilder<'a, 'b> { in new()
478 pub fn finish(self) -> flatbuffers::WIPOffset<Weapon<'a>> { in finish()
485 pub fn get_root_as_monster<'a>(buf: &'a [u8]) -> Monster<'a> { in get_root_as_monster()
490 pub fn get_size_prefixed_root_as_monster<'a>(buf: &'a [u8]) -> Monster<'a> { in get_size_prefixed_root_as_monster()
495 pub fn finish_monster_buffer<'a, 'b>( in finish_monster_buffer()
502 pub fn finish_size_prefixed_monster_buffer<'a, 'b>(fbb: &'b mut flatbuffers::FlatBufferBuilder<'a>,… in finish_size_prefixed_monster_buffer()
505 } // pub mod Sample
506 } // pub mod MyGame