Enum roblox::enumeration::DeviceType [−][src]
pub enum DeviceType { Unknown, Desktop, Tablet, Phone, }
Expand description
The DeviceType enumeration.
Examples
Getting an EnumItem’s name:
assert_eq!(roblox::enums::DeviceType::Unknown.name(), "Unknown");
Getting an EnumItem’s value:
assert_eq!(roblox::enums::DeviceType::Unknown.value(), Unknown);
Getting all EnumItems:
let enum_items = roblox::enums::DeviceType::get_enum_items();
Variants
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnwindSafe for DeviceType
Blanket Implementations
Mutably borrows from an owned value. Read more