pub struct SubComponent {Show 13 fields
pub name: String,
pub properties: Vec<Property>,
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<Expression>,
pub layout_info_h: Expression,
pub layout_info_v: Expression,
}
Fields§
§name: String
§properties: Vec<Property>
§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<Expression>
§layout_info_h: Expression
§layout_info_v: Expression
Implementations§
Source§impl SubComponent
impl SubComponent
Sourcepub fn repeater_count(&self) -> usize
pub fn repeater_count(&self) -> usize
total count of repeater, including in sub components
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubComponent
impl !RefUnwindSafe for SubComponent
impl !Send for SubComponent
impl !Sync for SubComponent
impl Unpin for SubComponent
impl !UnwindSafe for SubComponent
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> 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