Struct gtk4::builders::SortListModelBuilder
source · [−]pub struct SortListModelBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct SortListModel
objects.
Implementations
sourceimpl SortListModelBuilder
impl SortListModelBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new SortListModelBuilder
.
sourcepub fn build(self) -> SortListModel
pub fn build(self) -> SortListModel
Build the SortListModel
.
pub fn incremental(self, incremental: bool) -> Self
pub fn model(self, model: &impl IsA<ListModel>) -> Self
pub fn sorter(self, sorter: &impl IsA<Sorter>) -> Self
Trait Implementations
sourceimpl Clone for SortListModelBuilder
impl Clone for SortListModelBuilder
sourcefn clone(&self) -> SortListModelBuilder
fn clone(&self) -> SortListModelBuilder
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
sourceimpl Default for SortListModelBuilder
impl Default for SortListModelBuilder
sourcefn default() -> SortListModelBuilder
fn default() -> SortListModelBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SortListModelBuilder
impl !Send for SortListModelBuilder
impl !Sync for SortListModelBuilder
impl Unpin for SortListModelBuilder
impl UnwindSafe for SortListModelBuilder
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