Struct sixtyfps::VecModel [−][src]
pub struct VecModel<T> { /* fields omitted */ }
Expand description
A model backed by a Vec<T>
Implementations
Allocate a new model from a slice
Trait Implementations
type Data = T
type Data = T
The model data: A model is a set of row and each row has this data
Returns the data for a particular row. This function should be called with row < row_count()
.
Sets the data for a particular row. Read more
The implementation should forward to ModelNotify::attach
Return something that can be downcast’ed (typically self) Read more
fn iter(&self) -> ModelIterator<'_, Self::Data>ⓘNotable traits for ModelIterator<'a, T>impl<'a, T> Iterator for ModelIterator<'a, T> type Item = T;
fn iter(&self) -> ModelIterator<'_, Self::Data>ⓘNotable traits for ModelIterator<'a, T>impl<'a, T> Iterator for ModelIterator<'a, T> type Item = T;
Notable traits for ModelIterator<'a, T>
impl<'a, T> Iterator for ModelIterator<'a, T> type Item = T;
Returns an iterator visiting all elements of the model.