pub struct SubComponent {
Show 16 fields pub name: String, pub properties: Vec<Property>, pub functions: Vec<Function>, pub items: Vec<Item>, pub repeated: Vec<RepeatedElement>, pub popup_windows: Vec<ItemTree>, pub sub_components: Vec<SubComponentInstance>, pub property_init: Vec<(PropertyReference, BindingExpression)>, pub animations: HashMap<PropertyReference, Expression>, pub two_way_bindings: Vec<(PropertyReference, PropertyReference)>, pub const_properties: Vec<PropertyReference>, pub init_code: Vec<MutExpression>, pub layout_info_h: MutExpression, pub layout_info_v: MutExpression, pub accessible_prop: BTreeMap<(usize, String), MutExpression>, pub prop_analysis: HashMap<PropertyReference, PropAnalysis>,
}

Fields§

§name: String§properties: Vec<Property>§functions: Vec<Function>§items: Vec<Item>§repeated: Vec<RepeatedElement>§popup_windows: Vec<ItemTree>§sub_components: Vec<SubComponentInstance>§property_init: Vec<(PropertyReference, BindingExpression)>

The initial value or binding for properties. This is ordered in the order they must be set.

§animations: HashMap<PropertyReference, Expression>

The animation for properties which are animated

§two_way_bindings: Vec<(PropertyReference, PropertyReference)>§const_properties: Vec<PropertyReference>§init_code: Vec<MutExpression>

Code that is run in the sub component constructor, after property initializations

§layout_info_h: MutExpression§layout_info_v: MutExpression§accessible_prop: BTreeMap<(usize, String), MutExpression>

Maps (item_index, property) to an expression

§prop_analysis: HashMap<PropertyReference, PropAnalysis>

Implementations§

source§

impl SubComponent

source

pub fn repeater_count(&self) -> usize

total count of repeater, including in sub components

source

pub fn child_item_count(&self) -> usize

total count of items, including in sub components

Trait Implementations§

source§

impl Debug for SubComponent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.