pub fn add<E>(&self, expectation: E) -> ExpectationId where
        E: ExpectationT + 'static
    {
        // Lock our inner mutex
        let mut inner = self.0.lock().unwrap();
        
        // Add a new expectation
        let id = inner.expectations.add(Box::new(expectation));

        // Add that new expectation to the current Era
        inner.eras.last_mut().unwrap().push(id);

        id
    }
// Add a new Expectation under the current Era and return its id.
Add a new Expectation under the current Era and return its id.
Add a new Expectation under the current Era and return its id .
pub fn add<E>(&self, expectation: E) -> ExpectationId where
        E: ExpectationT + 'static
    {
        // Lock our inner mutex
        let mut inner = self.0.lock().unwrap();
        // Add a new expectation
        let id = inner.expectations.add(Box::new(expectation));
        // Add that new expectation to the current Era
        inner.eras.last_mut().unwrap().push(id);
        id
    }
pub fn add < E > ( & self , expectation : E ) -> ExpectationId where E : ExpectationT + ' static { // Lock our inner mutex let mut inner = self . 0 . lock ( ) . unwrap ( ) ; // Add a new expectation let id = inner . expectations . add ( Box :: new ( expectation ) ) ; // Add that new expectation to the current Era inner . eras . last_mut ( ) . unwrap ( ) . push ( id ) ; id }
Add a new Expectation under the current Era and return its id.
Add a new Expectation under the current Era and return its id .
&self
expectation
E
&self
expectation
E