logo
pub trait With<T> {
    fn with(self, param: T) -> Self;
}
Expand description

Powerfull way to build simple objects.

Required Methods

Set param

Implementations on Foreign Types

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>

Implementors