Skip to content

Instantly share code, notes, and snippets.

@yurivish yurivish/thing.rs
Created Oct 6, 2016

Embed
What would you like to do?
// 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
You can’t perform that action at this time.