Lines Matching full:method
4 (impl $imp:ident for $res:ty, $method:ident) => {
9 fn $method(self, other: $res) -> $res {
11 $imp::$method(self, &other)
18 (impl $imp:ident for $res:ty, $method:ident) => {
23 fn $method(self, other: $res) -> $res {
26 $imp::$method(self, &other)
28 $imp::$method(other, &self)
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 {
57 $imp::$method(other, self)
64 (impl $imp:ident for $res:ty, $method:ident) => {
69 fn $method(self, other: &$res) -> $res {
71 $imp::$method(&self, other)
78 (impl $imp:ident for $res:ty, $method:ident) => {
83 fn $method(self, other: &$res) -> $res {
85 $imp::$method(self.clone(), other)
92 (impl $imp:ident for $res:ty, $method:ident) => {
97 fn $method(self, other: &$res) -> $res {
100 $imp::$method(self.clone(), other)
102 $imp::$method(other.clone(), self)
110 (impl $imp:ident for $res:ty, $method:ident) => {
113 fn $method(&mut self, other: $res) {
114 self.$method(&other);
121 (impl $imp:ident for $res:ty, $scalar:ty, $method:ident) => {
124 fn $method(&mut self, other: $res) {
125 self.$method(&other);
133 (impl $imp:ident < $scalar:ty > for $res:ty, $method:ident) => {
138 fn $method(self, other: $res) -> $res {
139 $imp::$method(other, self)
147 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
152 fn $method(self, other: $scalar) -> $res {
153 $imp::$method(&self, other)
161 fn $method(self, other: $res) -> $res {
162 $imp::$method(self, &other)
169 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
174 fn $method(self, other: &$scalar) -> $res {
175 $imp::$method(self, *other)
183 fn $method(self, other: &$res) -> $res {
184 $imp::$method(*self, other)
191 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
196 fn $method(self, other: &$scalar) -> $res {
197 $imp::$method(&self, *other)
205 fn $method(self, other: $res) -> $res {
206 $imp::$method(*self, &other)
213 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
218 fn $method(self, other: &$scalar) -> $res {
219 $imp::$method(self, *other)
227 fn $method(self, other: $res) -> $res {
228 $imp::$method(*self, other)
235 (impl $imp:ident < $scalar:ty > for $res:ty, $method:ident) => {
240 fn $method(self, other: $scalar) -> $res {
241 $imp::$method(self.clone(), other)
249 fn $method(self, other: &$res) -> $res {
250 $imp::$method(self, other.clone())
257 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
262 fn $method(self, other: &$scalar) -> $res {
263 $imp::$method(self.clone(), *other)
271 fn $method(self, other: &$res) -> $res {
272 $imp::$method(*self, other.clone())
279 (impl $imp:ident<$promo:ty> for $res:ty, $method:ident, $( $scalar:ty ),*) => {
281 forward_all_scalar_binop_to_val_val!(impl $imp<$scalar> for $res, $method);
288 fn $method(self, other: $scalar) -> $res {
289 $imp::$method(self, other as $promo)
298 fn $method(self, other: $res) -> $res {
299 $imp::$method(self as $promo, other)
306 (impl $imp:ident<$promo:ty> for $res:ty, $method:ident, $( $scalar:ty ),*) => {
311 fn $method(&mut self, other: $scalar) {
312 self.$method(other as $promo);
320 (impl $imp:ident for $res:ty, $method:ident) => {
321 promote_scalars!(impl $imp<u32> for $res, $method, u8, u16);
322 promote_scalars!(impl $imp<UsizePromotion> for $res, $method, usize);
327 (impl $imp:ident for $res:ty, $method:ident) => {
328 promote_scalars_assign!(impl $imp<u32> for $res, $method, u8, u16);
329 promote_scalars_assign!(impl $imp<UsizePromotion> for $res, $method, usize);
334 (impl $imp:ident for $res:ty, $method:ident) => {
335 promote_scalars!(impl $imp<i32> for $res, $method, i8, i16);
336 promote_scalars!(impl $imp<IsizePromotion> for $res, $method, isize);
341 (impl $imp:ident for $res:ty, $method:ident) => {
342 promote_scalars_assign!(impl $imp<i32> for $res, $method, i8, i16);
343 promote_scalars_assign!(impl $imp<IsizePromotion> for $res, $method, isize);
349 (impl $imp:ident for $res:ty, $method:ident) => {
350 forward_val_val_binop!(impl $imp for $res, $method);
351 forward_val_ref_binop!(impl $imp for $res, $method);
352 forward_ref_val_binop!(impl $imp for $res, $method);
358 (impl $imp:ident for $res:ty, $method:ident) => {
359 forward_val_val_binop!(impl $imp for $res, $method);
360 forward_ref_val_binop!(impl $imp for $res, $method);
361 forward_ref_ref_binop!(impl $imp for $res, $method);
367 (impl $imp:ident for $res:ty, $method:ident) => {
368 forward_val_val_binop_commutative!(impl $imp for $res, $method);
369 forward_ref_val_binop_commutative!(impl $imp for $res, $method);
370 forward_ref_ref_binop_commutative!(impl $imp for $res, $method);
375 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
376 forward_scalar_val_val_binop_to_ref_val!(impl $imp<$scalar> for $res, $method);
377 forward_scalar_val_ref_binop_to_ref_val!(impl $imp<$scalar> for $res, $method);
378 forward_scalar_ref_ref_binop_to_ref_val!(impl $imp<$scalar> for $res, $method);
383 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
384 forward_scalar_val_ref_binop_to_val_val!(impl $imp<$scalar> for $res, $method);
385 forward_scalar_ref_val_binop_to_val_val!(impl $imp<$scalar> for $res, $method);
386 forward_scalar_ref_ref_binop_to_val_val!(impl $imp<$scalar> for $res, $method);
391 (impl $imp:ident<$scalar:ty> for $res:ty, $method:ident) => {
392 forward_scalar_val_val_binop_commutative!(impl $imp<$scalar> for $res, $method);
393 forward_all_scalar_binop_to_val_val!(impl $imp<$scalar> for $res, $method);
398 (impl $imp:ident for $res:ty, $method:ident) => {
399 promote_unsigned_scalars!(impl $imp for $res, $method);
400 promote_signed_scalars!(impl $imp for $res, $method);
405 (impl $imp:ident for $res:ty, $method:ident) => {
406 promote_unsigned_scalars_assign!(impl $imp for $res, $method);
407 promote_signed_scalars_assign!(impl $imp for $res, $method);