Struct sixtyfps_compilerlib::langtype::NativeClass [−][src]
pub struct NativeClass { pub parent: Option<Rc<NativeClass>>, pub class_name: String, pub vtable_symbol: String, pub properties: HashMap<String, Type>, 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
vtable_symbol: String
properties: HashMap<String, Type>
deprecated_aliases: HashMap<String, String>
cpp_type: Option<String>
rust_type_constructor: Option<String>
Implementations
impl NativeClass
[src]
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]
class_name: &str,
properties: impl IntoIterator<Item = (String, Type)>
) -> Self
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 lookup_alias(&self, name: &str) -> Option<&str>
[src]
pub fn select_minimal_class_based_on_property_usage<'a>(
self: Rc<Self>,
properties_used: impl Iterator<Item = &'a String>
) -> Rc<Self>
[src]
self: Rc<Self>,
properties_used: impl Iterator<Item = &'a String>
) -> Rc<Self>
Trait Implementations
impl Clone for NativeClass
[src]
impl Clone for NativeClass
[src]fn clone(&self) -> NativeClass
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for NativeClass
[src]
impl Default for NativeClass
[src]fn default() -> NativeClass
[src]
Auto Trait Implementations
impl !RefUnwindSafe for NativeClass
impl !RefUnwindSafe for NativeClass
impl !Send for NativeClass
impl !Send for NativeClass
impl !Sync for NativeClass
impl !Sync for NativeClass
impl Unpin for NativeClass
impl Unpin for NativeClass
impl !UnwindSafe for NativeClass
impl !UnwindSafe for NativeClass