[][src]Struct sixtyfps_compilerlib::langtype::BuiltinElement

pub struct BuiltinElement {
    pub name: String,
    pub native_class: Rc<NativeClass>,
    pub properties: HashMap<String, Type>,
    pub default_bindings: HashMap<String, Expression>,
    pub additional_accepted_child_types: HashMap<String, Type>,
    pub disallow_global_types_as_child_elements: bool,
    pub is_non_item_type: bool,
    pub member_functions: HashMap<String, Expression>,
    pub is_global: bool,
    pub expands_to_parent_geometry: bool,
}

Fields

name: Stringnative_class: Rc<NativeClass>properties: HashMap<String, Type>default_bindings: HashMap<String, Expression>additional_accepted_child_types: HashMap<String, Type>disallow_global_types_as_child_elements: boolis_non_item_type: bool

Non-item type do not have reserved properties (x/width/rowspan/...) added to them (eg: PropertyAnimation)

member_functions: HashMap<String, Expression>is_global: boolexpands_to_parent_geometry: bool

True if this type has a default width:100%; height:100%

Implementations

impl BuiltinElement[src]

pub fn new(native_class: Rc<NativeClass>) -> Self[src]

Trait Implementations

impl Clone for BuiltinElement[src]

impl Debug for BuiltinElement[src]

impl Default for BuiltinElement[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.