Struct i_slint_compiler::object_tree::RepeatedElementInfo
source · [−]pub struct RepeatedElementInfo {
pub model: Expression,
pub model_data_id: String,
pub index_id: String,
pub is_conditional_element: bool,
pub is_listview: Option<ListViewInfo>,
}
Expand description
If the parent element is a repeated element, this has information about the models
Fields
model: Expression
model_data_id: String
index_id: String
is_conditional_element: bool
A conditional element is just a for whose model is a boolean expression
When this is true, the model is of type boolean instead of Model
is_listview: Option<ListViewInfo>
When the for is the delegate of a ListView
Trait Implementations
sourceimpl Clone for RepeatedElementInfo
impl Clone for RepeatedElementInfo
sourcefn clone(&self) -> RepeatedElementInfo
fn clone(&self) -> RepeatedElementInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for RepeatedElementInfo
impl !Send for RepeatedElementInfo
impl !Sync for RepeatedElementInfo
impl Unpin for RepeatedElementInfo
impl !UnwindSafe for RepeatedElementInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more