fn consume_iter<X>(mut self, iter: X) -> Self
    where
        X: IntoIterator<Item = I>,
    {
        for item in iter {
            self = self.consume(item);

            if self.is_full() {
                break;
            }
        }

        self
    }
/// Consume items from the iterator until full, and return new sequential state.
///
/// This method is **optional**. The default simply iterates over
/// `iter`, invoking `consume` and checking after each iteration
/// whether `full` returns false.
///
/// The main reason to override it is if you can provide a more
/// specialized, efficient implementation.
Consume items from the iterator until full, and return new sequential state.
This method is **optional**.

The main reason to override it is if you can provide a more
specialized, efficient implementation.
Consume items from the iterator until full and return new sequential state . This method is ** optional ** . The main reason to override it is if you can provide a more specialized efficient implementation .
fn consume_iter<X>(mut self, iter: X) -> Self
    where
        X: IntoIterator<Item = I>,
    {
        for item in iter {
            self = self.consume(item);
            if self.is_full() {
                break;
            }
        }
        self
    }
fn consume_iter < X > ( mut self , iter : X ) -> Self where X : IntoIterator < Item = I > , { for item in iter { self = self . consume ( item ) ; if self . is_full ( ) { break ; } } self }
Consume items from the iterator until full, and return new sequential state.
Consume items from the iterator until full and return new sequential state .
mut self
iter
X
mut self
iter
X