pub fn new(mcmove: Box<dyn MCMove>, target_acceptance: Option<f64>) -> Move {
        let mut counter = Move {
            mcmove: mcmove,
            total_attempted: 0,
            total_accepted: 0,
            accepted: 0,
            attempted: 0,
            target_acceptance: None,
        };
        counter.set_acceptance(target_acceptance);
        counter
    }
/// Create a move, initializing all counts to zero and setting the
/// `target_acceptance`.
Create a move, initializing all counts to zero and setting the
`target_acceptance`.
Create a move initializing all counts to zero and setting the ` target_acceptance ` .
pub fn new(mcmove: Box<dyn MCMove>, target_acceptance: Option<f64>) -> Move {
        let mut counter = Move {
            mcmove: mcmove,
            total_attempted: 0,
            total_accepted: 0,
            accepted: 0,
            attempted: 0,
            target_acceptance: None,
        };
        counter.set_acceptance(target_acceptance);
        counter
    }
pub fn new ( mcmove : Box < dyn MCMove > , target_acceptance : Option < f64 > ) -> Move { let mut counter = Move { mcmove : mcmove , total_attempted : 0 , total_accepted : 0 , accepted : 0 , attempted : 0 , target_acceptance : None , } ; counter . set_acceptance ( target_acceptance ) ; counter }
Create a move, initializing all counts to zero and setting the
`target_acceptance`.
Create a move initializing all counts to zero and setting the ` target_acceptance ` .
mcmove
Box<dyn MCMove>
target_acceptance
Option<f64>