pub struct Class {
pub Members: Vec<ClassMember>,
pub MemoryCategory: String,
pub Name: String,
pub Superclass: String,
pub Tags: Vec<String>,
}Expand description
Dumped luau class
Fields§
§Members: Vec<ClassMember>§MemoryCategory: String§Name: String§Superclass: StringTo get all of the Class’ members,
get all of the Superclasses and
get all of their members until
the Superclass is <<<ROOT>>>
Tags: Vec<String>Contains tags like NotBrowsable and NotCreatable
You can use Class.is_not_browsable() and Class.is_not_createable() to
get a boolean value which represents the presence of those tags.
Implementations§
Source§impl Class
impl Class
Sourcepub fn is_not_browsable(&self) -> bool
pub fn is_not_browsable(&self) -> bool
Returns if self.Tags contains "NotBrowsable"
Sourcepub fn is_not_createable(&self) -> bool
pub fn is_not_createable(&self) -> bool
Returns if self.Tags contains "NotCreatable"
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Class
impl<'de> Deserialize<'de> for Class
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
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.