pub fn overwrite_from_string(&mut self, string: &str) {
        self.order.clear();
        self.order.reserve(string.len());

        for c in string.chars() {
            self.order.push(Bell::from(c));
        }
    }
/// Overwrites an existing `CoursingOrder` from a string slice representing a coursing order.
/// The length of the existing `CoursingOrder` does not necessarily need to match the length of
/// the `CoursingOrder` after overwriting.  In order to produce a valid `CoursingOrder`, the
/// heaviest bell in the string must appear first.
///
/// # Panics
/// Panics if the string contains characters that aren't valid bell names.
///
/// # Example
/// ```
/// use bellmetal::{CoursingOrder};
///
/// let mut coursing_order = CoursingOrder::empty();
///
/// coursing_order.overwrite_from_string("8764235");
///
/// assert_eq!(coursing_order.to_string(), "8764235");
/// ```
Overwrites an existing `CoursingOrder` from a string slice representing a coursing order.
The length of the existing `CoursingOrder` does not necessarily need to match the length of
the `CoursingOrder` after overwriting.  In order to produce a valid `CoursingOrder`, the
heaviest bell in the string must appear first.
Overwrites an existing ` CoursingOrder ` from a string slice representing a coursing order . The length of the existing ` CoursingOrder ` does not necessarily need to match the length of the ` CoursingOrder ` after overwriting . In order to produce a valid ` CoursingOrder ` the heaviest bell in the string must appear first .
pub fn overwrite_from_string(&mut self, string: &str) {
        self.order.clear();
        self.order.reserve(string.len());
        for c in string.chars() {
            self.order.push(Bell::from(c));
        }
    }
pub fn overwrite_from_string ( & mut self , string : & str ) { self . order . clear ( ) ; self . order . reserve ( string . len ( ) ) ; for c in string . chars ( ) { self . order . push ( Bell :: from ( c ) ) ; } }
Overwrites an existing `CoursingOrder` from a string slice representing a coursing order.
Overwrites an existing ` CoursingOrder ` from a string slice representing a coursing order .
&mut self
string
&str
&mut self
string
&str
panics
Panics if the string contains characters that aren't valid bell names.
Panics if the string contains characters that aren ' t valid bell names .
example
```
use bellmetal::{CoursingOrder}.

let mut coursing_order = CoursingOrder::empty().

coursing_order.overwrite_from_string("8764235").


` ` ` use bellmetal :: { CoursingOrder } . let mut coursing_order = CoursingOrder :: empty () . coursing_order . overwrite_from_string ( " 8764235 " ) .