Struct rbx_reflection::ReflectionDatabase
source · #[non_exhaustive]pub struct ReflectionDatabase<'a> {
pub version: [u32; 4],
pub classes: HashMap<Cow<'a, str>, ClassDescriptor<'a>>,
pub enums: HashMap<Cow<'a, str>, EnumDescriptor<'a>>,
}
Expand description
Contains information extracted from Roblox to describe all known Instances and enums.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.version: [u32; 4]
The Roblox release that this reflection database was generated from.
classes: HashMap<Cow<'a, str>, ClassDescriptor<'a>>
All of the the known classes in the database.
enums: HashMap<Cow<'a, str>, EnumDescriptor<'a>>
All of the known enums in the database.
Implementations§
source§impl<'a> ReflectionDatabase<'a>
impl<'a> ReflectionDatabase<'a>
Trait Implementations§
source§impl<'a> Clone for ReflectionDatabase<'a>
impl<'a> Clone for ReflectionDatabase<'a>
source§fn clone(&self) -> ReflectionDatabase<'a>
fn clone(&self) -> ReflectionDatabase<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for ReflectionDatabase<'a>
impl<'a> Debug for ReflectionDatabase<'a>
source§impl<'de, 'a> Deserialize<'de> for ReflectionDatabase<'a>
impl<'de, 'a> Deserialize<'de> for ReflectionDatabase<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ReflectionDatabase<'a>
impl<'a> Send for ReflectionDatabase<'a>
impl<'a> Sync for ReflectionDatabase<'a>
impl<'a> Unpin for ReflectionDatabase<'a>
impl<'a> UnwindSafe for ReflectionDatabase<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more