pub struct RepeatedElement {
pub model: MutExpression,
pub index_prop: Option<PropertyIdx>,
pub data_prop: Option<PropertyIdx>,
pub sub_tree: ItemTree,
pub index_in_tree: u32,
pub listview: Option<ListViewInfo>,
pub container_item_index: Option<ItemInstanceIdx>,
}Fields§
§model: MutExpression§index_prop: Option<PropertyIdx>Within the sub_tree’s root component. None for if
data_prop: Option<PropertyIdx>Within the sub_tree’s root component. None for if
sub_tree: ItemTree§index_in_tree: u32The index of the item node in the parent tree
listview: Option<ListViewInfo>§container_item_index: Option<ItemInstanceIdx>Access through this in case of the element being a is_component_placeholder
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RepeatedElement
impl !RefUnwindSafe for RepeatedElement
impl !Send for RepeatedElement
impl !Sync for RepeatedElement
impl Unpin for RepeatedElement
impl !UnwindSafe for RepeatedElement
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