• Home
  • Raw
  • Download

Lines Matching refs:Monster

99 pub struct Monster<'a> {  struct
103 impl<'a> flatbuffers::Follow<'a> for Monster<'a> { implementation
104 type Inner = Monster<'a>;
113 impl<'a> Monster<'a> { impl
116 Monster { in init_from_table()
123 _args: &'args MonsterArgs) -> flatbuffers::WIPOffset<Monster<'bldr>> { in create()
153 pub fn finish(self) -> flatbuffers::WIPOffset<Monster<'a>> { in finish()
244 Monster = 1, enumerator
287 Any::Monster,
927 pub struct Monster<'a> { struct
931 impl<'a> flatbuffers::Follow<'a> for Monster<'a> { implementation
932 type Inner = Monster<'a>;
941 impl<'a> Monster<'a> { implementation
944 Monster { in init_from_table()
951 args: &'args MonsterArgs<'args>) -> flatbuffers::WIPOffset<Monster<'bldr>> { in create()
1053 self._tab.get::<Vec3>(Monster::VT_POS, None) in pos()
1057 self._tab.get::<i16>(Monster::VT_MANA, Some(150)).unwrap() in mana()
1061 self._tab.get::<i16>(Monster::VT_HP, Some(100)).unwrap() in hp()
1065 self._tab.get::<flatbuffers::ForwardsUOffset<&str>>(Monster::VT_NAME, None).unwrap() in name()
1068 pub fn key_compare_less_than(&self, o: &Monster) -> bool { in key_compare_less_than()
1079 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, u8>>>(Monster::VT_INVENTORY, … in inventory()
1083 self._tab.get::<Color>(Monster::VT_COLOR, Some(Color::Blue)).unwrap() in color()
1087 self._tab.get::<Any>(Monster::VT_TEST_TYPE, Some(Any::NONE)).unwrap() in test_type()
1091 self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Table<'a>>>(Monster::VT_TEST, None) in test()
1095 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<Test>>>(Monster::VT_TEST4, None).… in test4()
1099 …ardsUOffset<flatbuffers::Vector<flatbuffers::ForwardsUOffset<&'a str>>>>(Monster::VT_TESTARRAYOFST… in testarrayofstring()
1104 …estarrayoftables(&self) -> Option<flatbuffers::Vector<flatbuffers::ForwardsUOffset<Monster<'a>>>> { in testarrayoftables()
1105 …ForwardsUOffset<flatbuffers::Vector<flatbuffers::ForwardsUOffset<Monster<'a>>>>>(Monster::VT_TESTA… in testarrayoftables()
1108 pub fn enemy(&self) -> Option<Monster<'a>> { in enemy()
1109 self._tab.get::<flatbuffers::ForwardsUOffset<Monster<'a>>>(Monster::VT_ENEMY, None) in enemy()
1113 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, u8>>>(Monster::VT_TESTNESTEDF… in testnestedflatbuffer()
1115 pub fn testnestedflatbuffer_nested_flatbuffer(&'a self) -> Option<Monster<'a>> { in testnestedflatbuffer_nested_flatbuffer()
1120 Some(<flatbuffers::ForwardsUOffset<Monster<'a>>>::follow(data, 0)) in testnestedflatbuffer_nested_flatbuffer()
1126 self._tab.get::<flatbuffers::ForwardsUOffset<Stat<'a>>>(Monster::VT_TESTEMPTY, None) in testempty()
1130 self._tab.get::<bool>(Monster::VT_TESTBOOL, Some(false)).unwrap() in testbool()
1134 self._tab.get::<i32>(Monster::VT_TESTHASHS32_FNV1, Some(0)).unwrap() in testhashs32_fnv1()
1138 self._tab.get::<u32>(Monster::VT_TESTHASHU32_FNV1, Some(0)).unwrap() in testhashu32_fnv1()
1142 self._tab.get::<i64>(Monster::VT_TESTHASHS64_FNV1, Some(0)).unwrap() in testhashs64_fnv1()
1146 self._tab.get::<u64>(Monster::VT_TESTHASHU64_FNV1, Some(0)).unwrap() in testhashu64_fnv1()
1150 self._tab.get::<i32>(Monster::VT_TESTHASHS32_FNV1A, Some(0)).unwrap() in testhashs32_fnv1a()
1154 self._tab.get::<u32>(Monster::VT_TESTHASHU32_FNV1A, Some(0)).unwrap() in testhashu32_fnv1a()
1158 self._tab.get::<i64>(Monster::VT_TESTHASHS64_FNV1A, Some(0)).unwrap() in testhashs64_fnv1a()
1162 self._tab.get::<u64>(Monster::VT_TESTHASHU64_FNV1A, Some(0)).unwrap() in testhashu64_fnv1a()
1166 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, bool>>>(Monster::VT_TESTARRAY… in testarrayofbools()
1170 self._tab.get::<f32>(Monster::VT_TESTF, Some(3.14159)).unwrap() in testf()
1174 self._tab.get::<f32>(Monster::VT_TESTF2, Some(3.0)).unwrap() in testf2()
1178 self._tab.get::<f32>(Monster::VT_TESTF3, Some(0.0)).unwrap() in testf3()
1182 …ardsUOffset<flatbuffers::Vector<flatbuffers::ForwardsUOffset<&'a str>>>>(Monster::VT_TESTARRAYOFST… in testarrayofstring2()
1186 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<Ability>>>(Monster::VT_TESTARRAYO… in testarrayofsortedstruct()
1190 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, u8>>>(Monster::VT_FLEX, None)… in flex()
1194 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<Test>>>(Monster::VT_TEST5, None).… in test5()
1198 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, i64>>>(Monster::VT_VECTOR_OF_… in vector_of_longs()
1202 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, f64>>>(Monster::VT_VECTOR_OF_… in vector_of_doubles()
1206 …self._tab.get::<flatbuffers::ForwardsUOffset<super::InParentNamespace<'a>>>(Monster::VT_PARENT_NAM… in parent_namespace_test()
1210 …fset<flatbuffers::Vector<flatbuffers::ForwardsUOffset<Referrable<'a>>>>>(Monster::VT_VECTOR_OF_REF… in vector_of_referrables()
1214 self._tab.get::<u64>(Monster::VT_SINGLE_WEAK_REFERENCE, Some(0)).unwrap() in single_weak_reference()
1218 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, u64>>>(Monster::VT_VECTOR_OF_… in vector_of_weak_references()
1222 …fset<flatbuffers::Vector<flatbuffers::ForwardsUOffset<Referrable<'a>>>>>(Monster::VT_VECTOR_OF_STR… in vector_of_strong_referrables()
1226 self._tab.get::<u64>(Monster::VT_CO_OWNING_REFERENCE, Some(0)).unwrap() in co_owning_reference()
1230 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, u64>>>(Monster::VT_VECTOR_OF_… in vector_of_co_owning_references()
1234 self._tab.get::<u64>(Monster::VT_NON_OWNING_REFERENCE, Some(0)).unwrap() in non_owning_reference()
1238 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, u64>>>(Monster::VT_VECTOR_OF_… in vector_of_non_owning_references()
1242 …self._tab.get::<AnyUniqueAliases>(Monster::VT_ANY_UNIQUE_TYPE, Some(AnyUniqueAliases::NONE)).unwra… in any_unique_type()
1246 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Table<'a>>>(Monster::VT_ANY_UNIQUE, None) in any_unique()
1250 …self._tab.get::<AnyAmbiguousAliases>(Monster::VT_ANY_AMBIGUOUS_TYPE, Some(AnyAmbiguousAliases::NON… in any_ambiguous_type()
1254 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Table<'a>>>(Monster::VT_ANY_AMBIGUOUS, N… in any_ambiguous()
1258 …self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, Color>>>(Monster::VT_VECTOR_O… in vector_of_enums()
1262 pub fn test_as_monster(&self) -> Option<Monster<'a>> { in test_as_monster()
1263 if self.test_type() == Any::Monster { in test_as_monster()
1264 self.test().map(|u| Monster::init_from_table(u)) in test_as_monster()
1282 pub fn test_as_my_game_example_2_monster(&self) -> Option<super::example_2::Monster<'a>> { in test_as_my_game_example_2_monster()
1284 self.test().map(|u| super::example_2::Monster::init_from_table(u)) in test_as_my_game_example_2_monster()
1292 pub fn any_unique_as_m(&self) -> Option<Monster<'a>> { in any_unique_as_m()
1294 self.any_unique().map(|u| Monster::init_from_table(u)) in any_unique_as_m()
1312 pub fn any_unique_as_m2(&self) -> Option<super::example_2::Monster<'a>> { in any_unique_as_m2()
1314 self.any_unique().map(|u| super::example_2::Monster::init_from_table(u)) in any_unique_as_m2()
1322 pub fn any_ambiguous_as_m1(&self) -> Option<Monster<'a>> { in any_ambiguous_as_m1()
1324 self.any_ambiguous().map(|u| Monster::init_from_table(u)) in any_ambiguous_as_m1()
1332 pub fn any_ambiguous_as_m2(&self) -> Option<Monster<'a>> { in any_ambiguous_as_m2()
1334 self.any_ambiguous().map(|u| Monster::init_from_table(u)) in any_ambiguous_as_m2()
1342 pub fn any_ambiguous_as_m3(&self) -> Option<Monster<'a>> { in any_ambiguous_as_m3()
1344 self.any_ambiguous().map(|u| Monster::init_from_table(u)) in any_ambiguous_as_m3()
1363 …tion<flatbuffers::WIPOffset<flatbuffers::Vector<'a , flatbuffers::ForwardsUOffset<Monster<'a >>>>>,
1364 pub enemy: Option<flatbuffers::WIPOffset<Monster<'a >>>,
1462 self.fbb_.push_slot_always::<&Vec3>(Monster::VT_POS, pos); in add_pos()
1466 self.fbb_.push_slot::<i16>(Monster::VT_MANA, mana, 150); in add_mana()
1470 self.fbb_.push_slot::<i16>(Monster::VT_HP, hp, 100); in add_hp()
1474 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_NAME, name); in add_name()
1478 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_INVENTORY, inventory); in add_inventory()
1482 self.fbb_.push_slot::<Color>(Monster::VT_COLOR, color, Color::Blue); in add_color()
1486 self.fbb_.push_slot::<Any>(Monster::VT_TEST_TYPE, test_type, Any::NONE); in add_test_type()
1490 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_TEST, test); in add_test()
1494 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_TEST4, test4); in add_test4()
1498 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_TESTARRAYOFSTRING, testarrayof… in add_testarrayofstring()
1501 …es: flatbuffers::WIPOffset<flatbuffers::Vector<'b , flatbuffers::ForwardsUOffset<Monster<'b >>>>) { in add_testarrayoftables()
1502 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_TESTARRAYOFTABLES, testarrayof… in add_testarrayoftables()
1505 pub fn add_enemy(&mut self, enemy: flatbuffers::WIPOffset<Monster<'b >>) { in add_enemy()
1506 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<Monster>>(Monster::VT_ENEMY, enemy); in add_enemy()
1510 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_TESTNESTEDFLATBUFFER, testnest… in add_testnestedflatbuffer()
1514 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<Stat>>(Monster::VT_TESTEMPTY, testempty); in add_testempty()
1518 self.fbb_.push_slot::<bool>(Monster::VT_TESTBOOL, testbool, false); in add_testbool()
1522 self.fbb_.push_slot::<i32>(Monster::VT_TESTHASHS32_FNV1, testhashs32_fnv1, 0); in add_testhashs32_fnv1()
1526 self.fbb_.push_slot::<u32>(Monster::VT_TESTHASHU32_FNV1, testhashu32_fnv1, 0); in add_testhashu32_fnv1()
1530 self.fbb_.push_slot::<i64>(Monster::VT_TESTHASHS64_FNV1, testhashs64_fnv1, 0); in add_testhashs64_fnv1()
1534 self.fbb_.push_slot::<u64>(Monster::VT_TESTHASHU64_FNV1, testhashu64_fnv1, 0); in add_testhashu64_fnv1()
1538 self.fbb_.push_slot::<i32>(Monster::VT_TESTHASHS32_FNV1A, testhashs32_fnv1a, 0); in add_testhashs32_fnv1a()
1542 self.fbb_.push_slot::<u32>(Monster::VT_TESTHASHU32_FNV1A, testhashu32_fnv1a, 0); in add_testhashu32_fnv1a()
1546 self.fbb_.push_slot::<i64>(Monster::VT_TESTHASHS64_FNV1A, testhashs64_fnv1a, 0); in add_testhashs64_fnv1a()
1550 self.fbb_.push_slot::<u64>(Monster::VT_TESTHASHU64_FNV1A, testhashu64_fnv1a, 0); in add_testhashu64_fnv1a()
1554 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_TESTARRAYOFBOOLS, testarrayofb… in add_testarrayofbools()
1558 self.fbb_.push_slot::<f32>(Monster::VT_TESTF, testf, 3.14159); in add_testf()
1562 self.fbb_.push_slot::<f32>(Monster::VT_TESTF2, testf2, 3.0); in add_testf2()
1566 self.fbb_.push_slot::<f32>(Monster::VT_TESTF3, testf3, 0.0); in add_testf3()
1570 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_TESTARRAYOFSTRING2, testarrayo… in add_testarrayofstring2()
1574 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_TESTARRAYOFSORTEDSTRUCT, testa… in add_testarrayofsortedstruct()
1578 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_FLEX, flex); in add_flex()
1582 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_TEST5, test5); in add_test5()
1586 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_VECTOR_OF_LONGS, vector_of_lon… in add_vector_of_longs()
1590 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_VECTOR_OF_DOUBLES, vector_of_d… in add_vector_of_doubles()
1594 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<super::InParentNamespace>>(Monster::VT_PARENT_… in add_parent_namespace_test()
1598 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_VECTOR_OF_REFERRABLES, vector_… in add_vector_of_referrables()
1602 self.fbb_.push_slot::<u64>(Monster::VT_SINGLE_WEAK_REFERENCE, single_weak_reference, 0); in add_single_weak_reference()
1606 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_VECTOR_OF_WEAK_REFERENCES, vec… in add_vector_of_weak_references()
1610 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_VECTOR_OF_STRONG_REFERRABLES, … in add_vector_of_strong_referrables()
1614 self.fbb_.push_slot::<u64>(Monster::VT_CO_OWNING_REFERENCE, co_owning_reference, 0); in add_co_owning_reference()
1618 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_VECTOR_OF_CO_OWNING_REFERENCES… in add_vector_of_co_owning_references()
1622 self.fbb_.push_slot::<u64>(Monster::VT_NON_OWNING_REFERENCE, non_owning_reference, 0); in add_non_owning_reference()
1626 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_VECTOR_OF_NON_OWNING_REFERENCE… in add_vector_of_non_owning_references()
1630 …self.fbb_.push_slot::<AnyUniqueAliases>(Monster::VT_ANY_UNIQUE_TYPE, any_unique_type, AnyUniqueAli… in add_any_unique_type()
1634 self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_ANY_UNIQUE, any_unique); in add_any_unique()
1638 …self.fbb_.push_slot::<AnyAmbiguousAliases>(Monster::VT_ANY_AMBIGUOUS_TYPE, any_ambiguous_type, Any… in add_any_ambiguous_type()
1642 … self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_ANY_AMBIGUOUS, any_ambiguous); in add_any_ambiguous()
1646 …self.fbb_.push_slot_always::<flatbuffers::WIPOffset<_>>(Monster::VT_VECTOR_OF_ENUMS, vector_of_enu… in add_vector_of_enums()
1657 pub fn finish(self) -> flatbuffers::WIPOffset<Monster<'a>> { in finish()
1659 self.fbb_.required(o, Monster::VT_NAME,"name"); in finish()
1873 pub fn get_root_as_monster<'a>(buf: &'a [u8]) -> Monster<'a> { in get_root_as_monster()
1874 flatbuffers::get_root::<Monster<'a>>(buf) in get_root_as_monster()
1878 pub fn get_size_prefixed_root_as_monster<'a>(buf: &'a [u8]) -> Monster<'a> { in get_size_prefixed_root_as_monster()
1879 flatbuffers::get_size_prefixed_root::<Monster<'a>>(buf) in get_size_prefixed_root_as_monster()
1899 root: flatbuffers::WIPOffset<Monster<'a>>) { in finish_monster_buffer()
1904 …, 'b>(fbb: &'b mut flatbuffers::FlatBufferBuilder<'a>, root: flatbuffers::WIPOffset<Monster<'a>>) { in finish_size_prefixed_monster_buffer()