pub fn matches(&mut self) -> Option<R> {
        match self.times {
            None => Some(self.result.clone()),
            Some(count) if count == 0 => None,
            Some(count) => {
                self.times = Some(count - 1);
                Some(self.result.clone())
            }
        }
    }
/// Returns Some<R> if the result matches a specified method-call
Returns Some if the result matches a specified method-call
Returns Some if the result matches a specified method - call
pub fn matches(&mut self) -> Option<R> {
        match self.times {
            None => Some(self.result.clone()),
            Some(count) if count == 0 => None,
            Some(count) => {
                self.times = Some(count - 1);
                Some(self.result.clone())
            }
        }
    }
pub fn matches ( & mut self ) -> Option < R > { match self . times { None => Some ( self . result . clone ( ) ) , Some ( count ) if count == 0 => None , Some ( count ) => { self . times = Some ( count - 1 ) ; Some ( self . result . clone ( ) ) } } }
Returns Some<R> if the result matches a specified method-call
Returns Some<R > if the result matches a specified method - call
&mut self
&mut self