pub fn with_at_most(at_most_times: usize,
                        stmt_id: usize,
                        bound: std::rc::Rc<std::any::Any>,
                        stmt_repr: &str)
                        -> Self {
        Self {
            stmt_id: stmt_id,
            num_matches: std::cell::Cell::new(0),
            expected_min_matches: None,
            expected_max_matches: Some(at_most_times),
            in_order: None,
            bound: bound,
            stmt_repr: stmt_repr.to_string(),
        }
    }
/// Creates a new behaviour which is satisfied if matched `at_most_times`.
Creates a new behaviour which is satisfied if matched `at_most_times`.
Creates a new behaviour which is satisfied if matched ` at_most_times ` .
pub fn with_at_most(at_most_times: usize,
                        stmt_id: usize,
                        bound: std::rc::Rc<std::any::Any>,
                        stmt_repr: &str)
                        -> Self {
        Self {
            stmt_id: stmt_id,
            num_matches: std::cell::Cell::new(0),
            expected_min_matches: None,
            expected_max_matches: Some(at_most_times),
            in_order: None,
            bound: bound,
            stmt_repr: stmt_repr.to_string(),
        }
    }
pub fn with_at_most ( at_most_times : usize , stmt_id : usize , bound : std :: rc :: Rc < std :: any :: Any > , stmt_repr : & str ) -> Self { Self { stmt_id : stmt_id , num_matches : std :: cell :: Cell :: new ( 0 ) , expected_min_matches : None , expected_max_matches : Some ( at_most_times ) , in_order : None , bound : bound , stmt_repr : stmt_repr . to_string ( ) , } }
Creates a new behaviour which is satisfied if matched `at_most_times`.
Creates a new behaviour which is satisfied if matched ` at_most_times ` .
at_most_times
usize
stmt_id
usize
bound
std::rc::Rc<std::any::Any>
stmt_repr
&str