[−][src]Struct rbx_reflection::RbxEnumDescriptor
Describes a Roblox enum.
This data is generated from the official Roblox JSON API dump and should be completely accurate.
Enums have a name and zero or more variants, which are represented as u32
values.
Methods
impl RbxEnumDescriptor
[src]
pub fn name(&self) -> &str
[src]
The name of the enum as reported by Roblox.
pub fn get_item<'a>(&'a self, name: &str) -> Option<u32>
[src]
Returns an item from the enum by name, if it exists.
pub fn iter_items(&self) -> impl Iterator<Item = (&str, u32)>
[src]
Returns an iterator over all items in this enum and their names.
Trait Implementations
impl PartialEq<RbxEnumDescriptor> for RbxEnumDescriptor
[src]
fn eq(&self, other: &RbxEnumDescriptor) -> bool
[src]
fn ne(&self, other: &RbxEnumDescriptor) -> bool
[src]
impl Debug for RbxEnumDescriptor
[src]
Auto Trait Implementations
impl Send for RbxEnumDescriptor
impl Sync for RbxEnumDescriptor
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,