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 new() -> Self
pub fn new() -> Self
Create a new NumericSorterBuilder
.
sourcepub fn build(self) -> NumericSorter
pub fn build(self) -> NumericSorter
Build the NumericSorter
.
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.
Trait Implementations§
source§impl Clone for NumericSorterBuilder
impl Clone for NumericSorterBuilder
source§fn clone(&self) -> NumericSorterBuilder
fn clone(&self) -> NumericSorterBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for NumericSorterBuilder
impl Default for NumericSorterBuilder
source§fn default() -> NumericSorterBuilder
fn default() -> NumericSorterBuilder
Returns the “default value” for a type. Read more