pub trait With<T> {
fn with(self, param: T) -> Self;
}
Expand description
Powerfull way to build simple objects.
Required Methods
Implementations on Foreign Types
sourceimpl<Param, Target> With<Param> for Builder<Target> where
Target: Default + SetterMut<Param>,
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>