pub fn from_iterator(iterator: &mut impl CoursingOrderIterator) -> CoursingOrder {
        let mut co = CoursingOrder::empty();

        co.overwrite_from_iterator(iterator);

        co
    }
/// Converts a [CoursingOrderIterator] into a `CoursingOrder`, regardless of how much of the
/// iterator has already been consumed.
///
/// # Example
/// ```
/// use bellmetal::{PlainCoursingOrderIterator, CoursingOrderIterator, CoursingOrder, Stage};
///
/// let mut plain_course_iterator = PlainCoursingOrderIterator::new(Stage::MAJOR);
///
/// // Consume some of the iterator
/// for i in 0..10 {
///     plain_course_iterator.next();
/// }
///
/// let coursing_order = CoursingOrder::from_iterator(&mut plain_course_iterator);
///
/// assert_eq!(coursing_order.to_string(), "8753246");
/// ```
Converts a [CoursingOrderIterator] into a `CoursingOrder`, regardless of how much of the
iterator has already been consumed.
Converts a [ CoursingOrderIterator ] into a ` CoursingOrder ` regardless of how much of the iterator has already been consumed .
pub fn from_iterator(iterator: &mut impl CoursingOrderIterator) -> CoursingOrder {
        let mut co = CoursingOrder::empty();
        co.overwrite_from_iterator(iterator);
        co
    }
pub fn from_iterator ( iterator : & mut impl CoursingOrderIterator ) -> CoursingOrder { let mut co = CoursingOrder :: empty ( ) ; co . overwrite_from_iterator ( iterator ) ; co }
Converts a [CoursingOrderIterator] into a `CoursingOrder`, regardless of how much of the
iterator has already been consumed.
Converts a [ CoursingOrderIterator ] into a ` CoursingOrder ` regardless of how much of the iterator has already been consumed .
iterator
&mut impl CoursingOrderIterator
iterator
&mut impl CoursingOrderIterator
example
```
use bellmetal::{PlainCoursingOrderIterator, CoursingOrderIterator, CoursingOrder, Stage}.

let mut plain_course_iterator = PlainCoursingOrderIterator::new(Stage::MAJOR).

Consume some of the iterator
for i in 0..10 {
plain_course_iterator.next();
}

let coursing_order = CoursingOrder::from_iterator(&mut plain_course_iterator).


` ` ` use bellmetal :: { PlainCoursingOrderIterator CoursingOrderIterator CoursingOrder Stage } . let mut plain_course_iterator = PlainCoursingOrderIterator :: new ( Stage :: MAJOR ) . Consume some of the iterator for i in 0 .. 10 { plain_course_iterator . next () ; } let coursing_order = CoursingOrder :: from_iterator ( &mut plain_course_iterator ) .