Skip to main content

WithExt

Trait WithExt 

Source
pub trait WithExt: Sized {
    // Provided method
    fn with(self, with: impl FnOnce(Self) -> Self) -> Self { ... }
}
Expand description

Methods for unconditionally modifying an element.

Provided Methods§

Source

fn with(self, with: impl FnOnce(Self) -> Self) -> Self

Applies with immediately.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§