Skip to content

Instantly share code, notes, and snippets.

@u2
Created December 20, 2018 09:50
Show Gist options
  • Select an option

  • Save u2/a53083d5cf550b6a6d97c4c82b0c636f to your computer and use it in GitHub Desktop.

Select an option

Save u2/a53083d5cf550b6a6d97c4c82b0c636f to your computer and use it in GitHub Desktop.
merge
pub trait Merge {
type Item: Default;
fn merge(&self, left: &Self::Item, right: &Self::Item) -> Self::Item;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment