Zip Optional
An iterator type for zipping with an optional iterable.
When the iterable being zipped has no value (i.e. is None), the
initial iterable is effectively zipped with std::iter::repeat(None).
# use zip_optional;
let a = vec!;
let mut zipped = zip_optional;
assert_eq!;
assert_eq!;
assert_eq!;
When the iterable being zipped has a value, the result of a sequence
of Some(_) which contains the items in the iterable being zipped
with.
# use zip_optional;
let a = vec!;
let b = Some;
let mut zipped = zip_optional;
assert_eq!;
assert_eq!;
assert_eq!;
The provided iterator may also be used inline with other iteration methods, like so:
# use Zippable;
let mut zipped = vec!.into_iter.zip_optional;
assert_eq!;
assert_eq!;
assert_eq!;