eschac 0.6.1

computing chess moves
Documentation
macro_rules! mk {
	() => {
		#[inline]
		fn next(&mut self) -> Option<Self::Item> {
			self.inner.next()
		}
		#[inline]
		fn size_hint(&self) -> (usize, Option<usize>) {
			self.inner.size_hint()
		}
		#[inline]
		fn count(self) -> usize
		where
			Self: Sized,
		{
			self.inner.count()
		}
		#[inline]
		fn last(self) -> Option<Self::Item>
		where
			Self: Sized,
		{
			self.inner.last()
		}
		#[inline]
		fn nth(&mut self, n: usize) -> Option<Self::Item> {
			self.inner.nth(n)
		}
		#[inline]
		fn for_each<F>(self, f: F)
		where
			Self: Sized,
			F: FnMut(Self::Item),
		{
			self.inner.for_each(f)
		}
		#[inline]
		fn fold<B, F>(self, init: B, f: F) -> B
		where
			Self: Sized,
			F: FnMut(B, Self::Item) -> B,
		{
			self.inner.fold(init, f)
		}
	};
}

pub(crate) use mk;