Skip to main content

With

Trait With 

Source
pub trait With<T> {
    // Required method
    fn with(self, _: T) -> Self;
}
Expand description

Consumes, updates, and returns Self.

Required Methods§

Source

fn with(self, _: T) -> Self

Consumes self, updates it, and returns the updated version.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§