macro_rules! impl_op {
($lhs:ty [cadd] $rhs:ty = $res:tt) => { ... };
($lhs:ty [csub] $rhs:ty = $res:tt) => { ... };
($lhs:ty [cmul] $rhs:ty = $res:tt) => { ... };
($lhs:ty [rmul] $rhs:ty = $res:tt) => { ... };
($lhs:ty [rdiv] $rhs:ty = $res:tt) => { ... };
(@method ($l:ident = $lhs:expr, $r:ident = $rhs:expr) => $op:expr, $res:tt) => { ... };
(@checked_method ($l:ident = $lhs:expr, $r:ident = $rhs:expr) => $op:expr, $res:tt) => { ... };
}
Expand description
Defines an operation for some wrapper. See top-level documentation.