Lines Matching defs:for_both

62 /// Syntax: `either::for_both!(` *expression* `,` *pattern* `=>` *expression* `)`
70 /// either::for_both!(owned_or_borrowed, s => s.len())
82 macro_rules! for_both {
874 for_both!(self, inner => inner)
929 for_both!(*self, ref mut inner => inner.extend(iter))
942 for_both!(*self, ref mut inner => inner.next())
946 for_both!(*self, ref inner => inner.size_hint())
953 for_both!(self, inner => inner.fold(init, f))
960 for_both!(self, inner => inner.for_each(f))
964 for_both!(self, inner => inner.count())
968 for_both!(self, inner => inner.last())
972 for_both!(*self, ref mut inner => inner.nth(n))
979 for_both!(self, inner => inner.collect())
987 for_both!(self, inner => inner.partition(f))
994 for_both!(*self, ref mut inner => inner.all(f))
1001 for_both!(*self, ref mut inner => inner.any(f))
1008 for_both!(*self, ref mut inner => inner.find(predicate))
1015 for_both!(*self, ref mut inner => inner.find_map(f))
1022 for_both!(*self, ref mut inner => inner.position(predicate))
1032 for_both!(*self, ref mut inner => inner.next_back())
1037 // for_both!(*self, ref mut inner => inner.nth_back(n))
1044 for_both!(self, inner => inner.rfold(init, f))
1051 for_both!(*self, ref mut inner => inner.rfind(predicate))
1061 for_both!(*self, ref inner => inner.len())
1084 for_both!(self.as_pin_mut(), inner => inner.poll(cx))
1098 for_both!(*self, ref mut inner => inner.read(buf))
1102 for_both!(*self, ref mut inner => inner.read_exact(buf))
1106 for_both!(*self, ref mut inner => inner.read_to_end(buf))
1110 for_both!(*self, ref mut inner => inner.read_to_string(buf))
1124 for_both!(*self, ref mut inner => inner.seek(pos))
1136 for_both!(*self, ref mut inner => inner.fill_buf())
1140 for_both!(*self, ref mut inner => inner.consume(amt))
1144 for_both!(*self, ref mut inner => inner.read_until(byte, buf))
1148 for_both!(*self, ref mut inner => inner.read_line(buf))
1162 for_both!(*self, ref mut inner => inner.write(buf))
1166 for_both!(*self, ref mut inner => inner.write_all(buf))
1170 for_both!(*self, ref mut inner => inner.write_fmt(fmt))
1174 for_both!(*self, ref mut inner => inner.flush())
1184 for_both!(*self, ref inner => inner.as_ref())
1195 for_both!(*self, ref inner => inner.as_ref())
1204 for_both!(*self, ref mut inner => inner.as_mut())
1233 for_both!(*self, ref inner => inner.as_ref())
1243 for_both!(*self, ref mut inner => inner.as_mut())
1253 for_both!(*self, ref mut inner => inner.as_mut())
1265 for_both!(*self, ref inner => &**inner)
1275 for_both!(*self, ref mut inner => &mut *inner)
1287 for_both!(*self, ref inner => inner.source())
1292 for_both!(*self, ref inner => inner.description())
1297 for_both!(*self, ref inner => inner.cause())
1307 for_both!(*self, ref inner => inner.fmt(f))