Lines Matching refs:Equipment
90 pub enum Equipment { enum
98 impl<'a> flatbuffers::Follow<'a> for Equipment { implementation
106 impl flatbuffers::EndianScalar for Equipment { implementation
110 let p = &n as *const u8 as *const Equipment; in to_little_endian() constant
116 let p = &n as *const u8 as *const Equipment; in from_little_endian() constant
121 impl flatbuffers::Push for Equipment { implementation
122 type Output = Equipment;
125 flatbuffers::emplace_scalar::<Equipment>(dst, *self); in push()
130 const ENUM_VALUES_EQUIPMENT:[Equipment; 2] = [
131 Equipment::NONE,
132 Equipment::Weapon
141 pub fn enum_name_equipment(e: Equipment) -> &'static str { in enum_name_equipment()
294 pub fn equipped_type(&'a self) -> Equipment { in equipped_type() argument
295 self._tab.get::<Equipment>(Monster::VT_EQUIPPED_TYPE, Some(Equipment::NONE)).unwrap() in equipped_type()
304 if self.equipped_type() == Equipment::Weapon { in equipped_as_weapon()
321 pub equipped_type: Equipment,
335 equipped_type: Equipment::NONE, in default()
374 pub fn add_equipped_type(&mut self, equipped_type: Equipment) { in add_equipped_type() argument
375 self.fbb_.push_slot::<Equipment>(Monster::VT_EQUIPPED_TYPE, equipped_type, Equipment::NONE); in add_equipped_type()