Skip to main content

Patch

Trait Patch 

Source
pub trait Patch: Patchable {
    // Required method
    fn patch(&mut self, patch: Self::Patch);
}
Expand description

A type that can be updated using its companion patch.

Required Methods§

Source

fn patch(&mut self, patch: Self::Patch)

Applies the given patch to update the structure.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§