Lines Matching refs:Race
257 pub enum Race { enum
268 impl<'a> flatbuffers::Follow<'a> for Race { implementation
276 impl flatbuffers::EndianScalar for Race { implementation
280 let p = &n as *const i8 as *const Race; in to_little_endian() constant
286 let p = &n as *const i8 as *const Race; in from_little_endian() constant
291 impl flatbuffers::Push for Race { implementation
292 type Output = Race;
295 flatbuffers::emplace_scalar::<Race>(dst, *self); in push()
300 pub const ENUM_VALUES_RACE:[Race; 4] = [
301 Race::None,
302 Race::Human,
303 Race::Dwarf,
304 Race::Elf
315 pub fn enum_name_race(e: Race) -> &'static str { in enum_name_race()
316 let index = e as i8 - Race::None as i8; in enum_name_race()
1372 pub fn signed_enum(&self) -> Race { in signed_enum() argument
1373 self._tab.get::<Race>(Monster::VT_SIGNED_ENUM, Some(Race::None)).unwrap() in signed_enum()
1515 pub signed_enum: Race,
1568 signed_enum: Race::None, in default()
1766 pub fn add_signed_enum(&mut self, signed_enum: Race) { in add_signed_enum() argument
1767 self.fbb_.push_slot::<Race>(Monster::VT_SIGNED_ENUM, signed_enum, Race::None); in add_signed_enum()