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

        for c in string.chars() {
            self.seq.push(Bell::from(c));
        }
    }
/// Replaces the contents of this `Change` with the permutation represented by `string`.  Doesn't
/// enforce that `string` represents a permutation of the same [Stage] as `self`, so this can be
/// used on any `Change` (even empty ones).
///
/// # Panics
/// Panics if `string` contains any characters that don't represent [Bell]s.
///
/// # Example
/// ```
/// use bellmetal::{Stage, Change};
///
/// let mut c = Change::rounds(Stage::ROYAL);
///
/// c.overwrite_from_string("1357924680");
///
/// assert_eq!(c, Change::from("1357924680"));
///
/// c.overwrite_from_string("123456");
///
/// assert_eq!(c.stage(), Stage::MINOR);
///
/// assert_eq!(c, Change::rounds(Stage::MINOR));
/// ```
Replaces the contents of this `Change` with the permutation represented by `string`.
Replaces the contents of this ` Change ` with the permutation represented by ` string ` .
pub fn overwrite_from_string(&mut self, string: &str) {
        self.seq.clear();
        self.seq.reserve(string.len());
        for c in string.chars() {
            self.seq.push(Bell::from(c));
        }
    }
pub fn overwrite_from_string ( & mut self , string : & str ) { self . seq . clear ( ) ; self . seq . reserve ( string . len ( ) ) ; for c in string . chars ( ) { self . seq . push ( Bell :: from ( c ) ) ; } }
Replaces the contents of this `Change` with the permutation represented by `string`.
Replaces the contents of this ` Change ` with the permutation represented by ` string ` .
&mut self
string
&str
&mut self
string
&str
panics
Panics if `string` contains any characters that don't represent [Bell]s.
Panics if ` string ` contains any characters that don ' t represent [ Bell ] s .
example
```
use bellmetal::{Stage, Change}.

let mut c = Change::rounds(Stage::ROYAL).







assert_eq!(c.stage(), Stage::MINOR).

assert_eq!(c, Change::rounds(Stage::MINOR));
```
` ` ` use bellmetal :: { Stage Change } . let mut c = Change :: rounds ( Stage :: ROYAL ) . assert_eq! ( c . stage () Stage :: MINOR ) . assert_eq! ( c Change :: rounds ( Stage :: MINOR )) ; ` ` `