[][src]Struct sixtyfps_compilerlib::typeregister::NativeClass

pub struct NativeClass {
    pub parent: Option<Rc<NativeClass>>,
    pub class_name: String,
    pub vtable_symbol: String,
    pub properties: HashMap<String, Type>,
    pub cpp_type: Option<String>,
    pub rust_type_constructor: Option<String>,
}

Fields

parent: Option<Rc<NativeClass>>class_name: Stringvtable_symbol: Stringproperties: HashMap<String, Type>cpp_type: Option<String>rust_type_constructor: Option<String>

Implementations

impl NativeClass[src]

pub fn new(class_name: &str) -> Self[src]

pub fn new_with_properties(
    class_name: &str,
    properties: impl IntoIterator<Item = (String, Type)>
) -> Self
[src]

pub fn property_count(&self) -> usize[src]

pub fn local_property_iter(&self) -> impl Iterator<Item = (&String, &Type)>[src]

pub fn visit_class_hierarchy(self: Rc<Self>, visitor: impl FnMut(&Rc<Self>))[src]

pub fn lookup_property(&self, name: &str) -> Option<Type>[src]

pub fn select_minimal_class_based_on_property_usage<'a>(
    self: Rc<Self>,
    properties_used: impl Iterator<Item = &'a String>
) -> Rc<Self>
[src]

Trait Implementations

impl Clone for NativeClass[src]

impl Debug for NativeClass[src]

impl Default for NativeClass[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.