1.12.0[−][src]Trait cookie_factory::lib::std::iter::Product
Trait to represent types that can be created by multiplying elements of an iterator.
This trait is used to implement the product
method on iterators. Types
which implement the trait can be generated by the product
method. Like
FromIterator
this trait should rarely be called directly and instead
interacted with through Iterator::product
.
Required methods
fn product<I>(iter: I) -> Self where
I: Iterator<Item = A>,
I: Iterator<Item = A>,
Method which takes an iterator and generates Self
from the elements by
multiplying the items.
Implementations on Foreign Types
impl Product<u128> for u128
[src]
impl Product<Wrapping<isize>> for Wrapping<isize>
[src]
impl Product<Wrapping<usize>> for Wrapping<usize>
[src]
impl Product<i8> for i8
[src]
impl<'a> Product<&'a i8> for i8
[src]
impl<'a> Product<&'a u16> for u16
[src]
impl Product<Wrapping<u32>> for Wrapping<u32>
[src]
impl Product<Wrapping<i32>> for Wrapping<i32>
[src]
impl<T, U> Product<Option<U>> for Option<T> where
T: Product<U>,
[src]
T: Product<U>,
fn product<I>(iter: I) -> Option<T> where
I: Iterator<Item = Option<U>>,
[src]
I: Iterator<Item = Option<U>>,
Takes each element in the Iterator
: if it is a None
, no further
elements are taken, and the None
is returned. Should no None
occur,
the product of all elements is returned.