Lines Matching refs:method
36 (impl $imp:ident for $res:ty, $method:ident) => {
41 fn $method(self, other: $res) -> $res {
43 $imp::$method(self, &other)
50 (impl $imp:ident for $res:ty, $method:ident) => {
55 fn $method(self, other: $res) -> $res {
58 $imp::$method(self, &other)
60 $imp::$method(other, &self)
68 (impl $imp:ident for $res:ty, $method:ident) => {
73 fn $method(self, other: $res) -> $res {
75 $imp::$method(self, &other)
82 (impl $imp:ident for $res:ty, $method:ident) => {
87 fn $method(self, other: $res) -> $res {
89 $imp::$method(other, self)
96 (impl $imp:ident for $res:ty, $method:ident) => {
101 fn $method(self, other: &$res) -> $res {
103 $imp::$method(&self, other)
110 (impl $imp:ident for $res:ty, $method:ident) => {
115 fn $method(self, other: &$res) -> $res {
117 $imp::$method(self.clone(), other)
124 (impl $imp:ident for $res:ty, $method:ident) => {
129 fn $method(self, other: &$res) -> $res {
132 $imp::$method(self.clone(), other)
134 $imp::$method(other.clone(), self)
142 (impl $imp:ident for $res:ty, $method:ident) => {
145 fn $method(&mut self, other: $res) {
146 self.$method(&other);
153 (impl $imp:ident for $res:ty, $scalar:ty, $method:ident) => {
156 fn $method(&mut self, other: $res) {
157 self.$method(&other);
165 (impl $imp:ident < $scalar:ty > for $res:ty, $method:ident) => {
170 fn $method(self, other: $res) -> $res {
171 $imp::$method(other, self)
179 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
184 fn $method(self, other: $scalar) -> $res {
185 $imp::$method(&self, other)
193 fn $method(self, other: $res) -> $res {
194 $imp::$method(self, &other)
201 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
206 fn $method(self, other: &$scalar) -> $res {
207 $imp::$method(self, *other)
215 fn $method(self, other: &$res) -> $res {
216 $imp::$method(*self, other)
223 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
228 fn $method(self, other: &$scalar) -> $res {
229 $imp::$method(&self, *other)
237 fn $method(self, other: $res) -> $res {
238 $imp::$method(*self, &other)
245 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
250 fn $method(self, other: &$scalar) -> $res {
251 $imp::$method(self, *other)
259 fn $method(self, other: $res) -> $res {
260 $imp::$method(*self, other)
267 (impl $imp:ident < $scalar:ty > for $res:ty, $method:ident) => {
272 fn $method(self, other: $scalar) -> $res {
273 $imp::$method(self.clone(), other)
281 fn $method(self, other: &$res) -> $res {
282 $imp::$method(self, other.clone())
289 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
294 fn $method(self, other: &$scalar) -> $res {
295 $imp::$method(self.clone(), *other)
303 fn $method(self, other: &$res) -> $res {
304 $imp::$method(*self, other.clone())
311 (impl $imp:ident<$promo:ty> for $res:ty, $method:ident, $( $scalar:ty ),*) => {
313 forward_all_scalar_binop_to_val_val!(impl $imp<$scalar> for $res, $method);
320 fn $method(self, other: $scalar) -> $res {
321 $imp::$method(self, other as $promo)
330 fn $method(self, other: $res) -> $res {
331 $imp::$method(self as $promo, other)
338 (impl $imp:ident<$promo:ty> for $res:ty, $method:ident, $( $scalar:ty ),*) => {
343 fn $method(&mut self, other: $scalar) {
344 self.$method(other as $promo);
352 (impl $imp:ident for $res:ty, $method:ident) => {
353 promote_scalars!(impl $imp<u32> for $res, $method, u8, u16);
354 promote_scalars!(impl $imp<UsizePromotion> for $res, $method, usize);
359 (impl $imp:ident for $res:ty, $method:ident) => {
360 promote_scalars_assign!(impl $imp<u32> for $res, $method, u8, u16);
361 promote_scalars_assign!(impl $imp<UsizePromotion> for $res, $method, usize);
366 (impl $imp:ident for $res:ty, $method:ident) => {
367 promote_scalars!(impl $imp<i32> for $res, $method, i8, i16);
368 promote_scalars!(impl $imp<IsizePromotion> for $res, $method, isize);
373 (impl $imp:ident for $res:ty, $method:ident) => {
374 promote_scalars_assign!(impl $imp<i32> for $res, $method, i8, i16);
375 promote_scalars_assign!(impl $imp<IsizePromotion> for $res, $method, isize);
381 (impl $imp:ident for $res:ty, $method:ident) => {
382 forward_val_val_binop!(impl $imp for $res, $method);
383 forward_val_ref_binop!(impl $imp for $res, $method);
384 forward_ref_val_binop!(impl $imp for $res, $method);
390 (impl $imp:ident for $res:ty, $method:ident) => {
391 forward_val_val_binop!(impl $imp for $res, $method);
392 forward_ref_val_binop!(impl $imp for $res, $method);
393 forward_ref_ref_binop!(impl $imp for $res, $method);
399 (impl $imp:ident for $res:ty, $method:ident) => {
400 forward_val_val_binop_commutative!(impl $imp for $res, $method);
401 forward_ref_val_binop_commutative!(impl $imp for $res, $method);
402 forward_ref_ref_binop_commutative!(impl $imp for $res, $method);
407 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
408 forward_scalar_val_val_binop_to_ref_val!(impl $imp<$scalar> for $res, $method);
409 forward_scalar_val_ref_binop_to_ref_val!(impl $imp<$scalar> for $res, $method);
410 forward_scalar_ref_ref_binop_to_ref_val!(impl $imp<$scalar> for $res, $method);
415 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
416 forward_scalar_val_ref_binop_to_val_val!(impl $imp<$scalar> for $res, $method);
417 forward_scalar_ref_val_binop_to_val_val!(impl $imp<$scalar> for $res, $method);
418 forward_scalar_ref_ref_binop_to_val_val!(impl $imp<$scalar> for $res, $method);
423 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
424 forward_scalar_val_val_binop_commutative!(impl $imp<$scalar> for $res, $method);
425 forward_all_scalar_binop_to_val_val!(impl $imp<$scalar> for $res, $method);
430 (impl $imp:ident for $res:ty, $method:ident) => {
431 promote_unsigned_scalars!(impl $imp for $res, $method);
432 promote_signed_scalars!(impl $imp for $res, $method);
437 (impl $imp:ident for $res:ty, $method:ident) => {
438 promote_unsigned_scalars_assign!(impl $imp for $res, $method);
439 promote_signed_scalars_assign!(impl $imp for $res, $method);