pub fn new(reset: Box<dyn FnMut() -> Box<dyn FnMut() -> T>>) -> Self {
        Self {
            reset,
            generator: None,
        }
    }
/// Creates a nested generator with specified `reset` closure.
Creates a nested generator with specified `reset` closure.
Creates a nested generator with specified ` reset ` closure .
pub fn new(reset: Box<dyn FnMut() -> Box<dyn FnMut() -> T>>) -> Self {
        Self {
            reset,
            generator: None,
        }
    }
pub fn new ( reset : Box < dyn FnMut ( ) -> Box < dyn FnMut ( ) -> T > > ) -> Self { Self { reset , generator : None , } }
Creates a nested generator with specified `reset` closure.
Creates a nested generator with specified ` reset ` closure .
reset
Box<dyn FnMut() -> Box<dyn FnMut() -> T>>