pub struct NativeClass {
    pub parent: Option<Rc<NativeClass>>,
    pub class_name: String,
    pub cpp_vtable_getter: String,
    pub properties: HashMap<String, BuiltinPropertyInfo>,
    pub deprecated_aliases: HashMap<String, String>,
    pub cpp_type: Option<String>,
    pub rust_type_constructor: Option<String>,
}Fields§
§parent: Option<Rc<NativeClass>>§class_name: String§cpp_vtable_getter: String§properties: HashMap<String, BuiltinPropertyInfo>§deprecated_aliases: HashMap<String, String>§cpp_type: Option<String>§rust_type_constructor: Option<String>Implementations§
Source§impl NativeClass
 
impl NativeClass
pub fn new(class_name: &str) -> Self
pub fn new_with_properties( class_name: &str, properties: impl IntoIterator<Item = (String, BuiltinPropertyInfo)>, ) -> Self
pub fn property_count(&self) -> usize
pub fn lookup_property(&self, name: &str) -> Option<&Type>
pub fn lookup_alias(&self, name: &str) -> Option<&str>
Trait Implementations§
Source§impl Clone for NativeClass
 
impl Clone for NativeClass
Source§fn clone(&self) -> NativeClass
 
fn clone(&self) -> NativeClass
Returns a duplicate 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 Debug for NativeClass
 
impl Debug for NativeClass
Source§impl Default for NativeClass
 
impl Default for NativeClass
Source§fn default() -> NativeClass
 
fn default() -> NativeClass
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NativeClass
impl !RefUnwindSafe for NativeClass
impl !Send for NativeClass
impl !Sync for NativeClass
impl Unpin for NativeClass
impl !UnwindSafe for NativeClass
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<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more