Skip to main content

Patch

Trait Patch 

Source
pub trait Patch<Target> {
    // Required method
    fn apply(self, target: Target) -> Target;
}
Expand description

A struct other structs can be patched with

Required Methods§

Source

fn apply(self, target: Target) -> Target

Apply self to target

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§