Struct gtk4::builders::NumericSorterBuilder
source · pub struct NumericSorterBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct NumericSorter
objects.
Implementations§
source§impl NumericSorterBuilder
impl NumericSorterBuilder
sourcepub fn expression(self, expression: impl AsRef<Expression>) -> Self
pub fn expression(self, expression: impl AsRef<Expression>) -> Self
The expression to evaluate on items to get a number to compare with.
sourcepub fn sort_order(self, sort_order: SortType) -> Self
pub fn sort_order(self, sort_order: SortType) -> Self
Whether the sorter will sort smaller numbers first.
sourcepub fn build(self) -> NumericSorter
pub fn build(self) -> NumericSorter
Build the NumericSorter
.
Auto Trait Implementations§
impl RefUnwindSafe for NumericSorterBuilder
impl !Send for NumericSorterBuilder
impl !Sync for NumericSorterBuilder
impl Unpin for NumericSorterBuilder
impl UnwindSafe for NumericSorterBuilder
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