Trait components::prelude::With
[−]pub trait With<T> {
fn with(self, param: T) -> Self;
}
Expand description
Powerfull way to build simple objects.
Required Methods
fn with(self, param: T) -> Self
fn with(self, param: T) -> Self
Set param
Implementors
impl With<Size> for SizedBox
impl<Param, Target> With<Param> for Builder<Target> where
Target: Default + SetterMut<Param>,
Promote With trait for all objects which implement Setter trait.
Current version of Rust is not supported trait exclusion from trait bounds.
So if you need IMP’ish version of With, you should to implement it yourself
something like a:
impl With<Title> for Builder<Window>