pub struct StringListModel { /* private fields */ }Expand description
A string list model that drives a Qt QListView incrementally.
Mutations update a yse_model::ListModel and are applied to the C++
QAbstractListModel through beginInsertRows/beginRemoveRows/
dataChanged, so the view never resets for ordinary edits.
Implementations§
Source§impl StringListModel
impl StringListModel
Sourcepub fn extend(&self, items: impl IntoIterator<Item = String>)
pub fn extend(&self, items: impl IntoIterator<Item = String>)
Append every item in items.
Sourcepub fn replace_all(&self, items: impl IntoIterator<Item = String>)
pub fn replace_all(&self, items: impl IntoIterator<Item = String>)
Replace the whole list.
Trait Implementations§
Source§impl Clone for StringListModel
impl Clone for StringListModel
Auto Trait Implementations§
impl !RefUnwindSafe for StringListModel
impl !Send for StringListModel
impl !Sync for StringListModel
impl !UnwindSafe for StringListModel
impl Freeze for StringListModel
impl Unpin for StringListModel
impl UnsafeUnpin for StringListModel
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