pub struct FiltersPropsBuilder<__query = query, __theme = theme, __metric = metric> { /* private fields */ }Expand description
Typestate builder for FiltersProps, created by FiltersProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl<__query, __theme, __metric> FiltersPropsBuilder<__query, __theme, __metric>
impl<__query, __theme, __metric> FiltersPropsBuilder<__query, __theme, __metric>
Sourcepub fn query(self, query: Query) -> FiltersPropsBuilder<Set, __theme, __metric>
pub fn query(self, query: Query) -> FiltersPropsBuilder<Set, __theme, __metric>
Sets the query property.
Sourcepub fn theme(self, theme: usize) -> FiltersPropsBuilder<__query, Set, __metric>
pub fn theme(self, theme: usize) -> FiltersPropsBuilder<__query, Set, __metric>
Sets the theme property.
Sourcepub fn metric(
self,
metric: Metric,
) -> FiltersPropsBuilder<__query, __theme, Set>
pub fn metric( self, metric: Metric, ) -> FiltersPropsBuilder<__query, __theme, Set>
Sets the metric property.
Sourcepub fn build(self) -> FiltersProps
pub fn build(self) -> FiltersProps
Builds the props struct from the set properties.
Only available once every required property has been set.
#[default] properties that were not set are filled with
Default::default(), or the #[default(expr)] expression.
Auto Trait Implementations§
impl<__query, __theme, __metric> Freeze for FiltersPropsBuilder<__query, __theme, __metric>
impl<__query, __theme, __metric> RefUnwindSafe for FiltersPropsBuilder<__query, __theme, __metric>
impl<__query, __theme, __metric> Send for FiltersPropsBuilder<__query, __theme, __metric>
impl<__query, __theme, __metric> Sync for FiltersPropsBuilder<__query, __theme, __metric>
impl<__query, __theme, __metric> Unpin for FiltersPropsBuilder<__query, __theme, __metric>
impl<__query, __theme, __metric> UnsafeUnpin for FiltersPropsBuilder<__query, __theme, __metric>
impl<__query, __theme, __metric> UnwindSafe for FiltersPropsBuilder<__query, __theme, __metric>
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