pub trait StructMergeRef<Src> {
// Required method
fn merge_ref(&mut self, src: &Src);
}
Expand description
Merge another borrowed struct into Self
.
All fields to be merged on the borrowed struct have to implement Clone.
Required Methods§
Implementors§
impl<Target, Src: StructMergeIntoRef<Target>> StructMergeRef<Src> for Target
Implement the StructMergeRef trait for all types that provide StructMergeInto for it.