pub trait Patch<P> {
// Required method
fn patch(&mut self, patch: P);
// Provided method
fn with_patch(self, patch: P) -> Self
where Self: Sized { ... }
}Expand description
Modify partially or totally the value of self from a patch value.
Required Methods§
Provided Methods§
Sourcefn with_patch(self, patch: P) -> Selfwhere
Self: Sized,
fn with_patch(self, patch: P) -> Selfwhere
Self: Sized,
Consumes self and returns a patched version.