pub fn overwrite_from_iterator(&mut self, iterator: &mut impl CoursingOrderIterator) {
        let heaviest_bell = iterator.seek_heaviest_bell();

        // Copy the iterator into the vector
        let len = iterator.length();

        self.order.clear();
        self.order.reserve(len);

        self.order.push(heaviest_bell);
        for _ in 0..len - 1 {
            let x = iterator.next();

            self.order.push(x);
        }
    }
/// Overwrites an existing `CoursingOrder` with the contents of a [CoursingOrderIterator].
/// This will automatically ensure that the heaviest bell is at the front of the coursing
/// order.  This is used (along with [CoursingOrder::empty]) in [CoursingOrder::from_iterator]
/// to populate a blank `CoursingOrder` with the contents of an iterator.
///
/// # Example
/// ```
/// use bellmetal::{Change, CoursingOrder, Stage};
///
/// let mut plain_course = CoursingOrder::from_leadhead(&Change::rounds(Stage::MAJOR));
/// let mut mega_tittums = CoursingOrder::from("8765432");
///
/// plain_course.overwrite_from_iterator(&mut mega_tittums.iter());
///
/// assert_eq!(plain_course.to_string(), "8765432");
/// ```
Overwrites an existing `CoursingOrder` with the contents of a [CoursingOrderIterator].
This will automatically ensure that the heaviest bell is at the front of the coursing
order.  This is used (along with [CoursingOrder::empty]) in [CoursingOrder::from_iterator]
to populate a blank `CoursingOrder` with the contents of an iterator.
Overwrites an existing ` CoursingOrder ` with the contents of a [ CoursingOrderIterator ] . This will automatically ensure that the heaviest bell is at the front of the coursing order . This is used ( along with [ CoursingOrder :: empty ] ) in [ CoursingOrder :: from_iterator ] to populate a blank ` CoursingOrder ` with the contents of an iterator .
pub fn overwrite_from_iterator(&mut self, iterator: &mut impl CoursingOrderIterator) {
        let heaviest_bell = iterator.seek_heaviest_bell();
        // Copy the iterator into the vector
        let len = iterator.length();
        self.order.clear();
        self.order.reserve(len);
        self.order.push(heaviest_bell);
        for _ in 0..len - 1 {
            let x = iterator.next();
            self.order.push(x);
        }
    }
pub fn overwrite_from_iterator ( & mut self , iterator : & mut impl CoursingOrderIterator ) { let heaviest_bell = iterator . seek_heaviest_bell ( ) ; // Copy the iterator into the vector let len = iterator . length ( ) ; self . order . clear ( ) ; self . order . reserve ( len ) ; self . order . push ( heaviest_bell ) ; for _ in 0 .. len - 1 { let x = iterator . next ( ) ; self . order . push ( x ) ; } }
Overwrites an existing `CoursingOrder` with the contents of a [CoursingOrderIterator].
Overwrites an existing ` CoursingOrder ` with the contents of a [ CoursingOrderIterator ] .
&mut self
iterator
&mut impl CoursingOrderIterator
&mut self
iterator
&mut impl CoursingOrderIterator
example
```
use bellmetal::{Change, CoursingOrder, Stage}.

let mut plain_course = CoursingOrder::from_leadhead(&Change::rounds(Stage::MAJOR));
let mut mega_tittums = CoursingOrder::from("8765432").

plain_course.overwrite_from_iterator(&mut mega_tittums.iter()).


` ` ` use bellmetal :: { Change CoursingOrder Stage } . let mut plain_course = CoursingOrder :: from_leadhead ( &Change :: rounds ( Stage :: MAJOR )) ; let mut mega_tittums = CoursingOrder :: from ( " 8765432 " ) . plain_course . overwrite_from_iterator ( &mut mega_tittums . iter () ) .