Enum roblox::enumeration::GearType [−][src]
pub enum GearType { MeleeWeapons, RangedWeapons, Explosives, PowerUps, NavigationEnhancers, MusicalInstruments, SocialItems, BuildingTools, Transport, }
Expand description
The GearType enumeration.
Examples
Getting an EnumItem’s name:
assert_eq!(roblox::enums::GearType::MeleeWeapons.name(), "MeleeWeapons");
Getting an EnumItem’s value:
assert_eq!(roblox::enums::GearType::MeleeWeapons.value(), MeleeWeapons);
Getting all EnumItems:
let enum_items = roblox::enums::GearType::get_enum_items();
Variants
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GearType
impl UnwindSafe for GearType
Blanket Implementations
Mutably borrows from an owned value. Read more