Skip to content

Instantly share code, notes, and snippets.

@yurivish
Created October 6, 2016 04:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save yurivish/0fc34893cd7e48a3fd1f90d9720f948c to your computer and use it in GitHub Desktop.
// S + $type_ -> $type_
impl $trait_<$type_> for S {
type Output = $type_;
fn $fn_(self, rhs: $type_) -> $type_ {
$type_::new($(self $op rhs.$args), *)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment