pub fn validate<F>(asserter: F)  where F: Fn(&Vec<CapturedLog>) {
    LOG_RECORDS.with( |records| {
        asserter(&records.borrow());
        records.borrow_mut().truncate(0);
    });
}
/// Used to validate any captured log events.
///
/// the `asserter` closure can check the number, body, target and level
/// of captured log events. As a side effect, the records are cleared.
Used to validate any captured log events.
the `asserter` closure can check the number, body, target and level
of captured log events. As a side effect, the records are cleared.
Used to validate any captured log events . the ` asserter ` closure can check the number body target and level of captured log events . As a side effect the records are cleared .
pub fn validate<F>(asserter: F)  where F: Fn(&Vec<CapturedLog>) {
    LOG_RECORDS.with( |records| {
        asserter(&records.borrow());
        records.borrow_mut().truncate(0);
    });
}
pub fn validate < F > ( asserter : F ) where F : Fn ( & Vec < CapturedLog > ) { LOG_RECORDS . with ( | records | { asserter ( & records . borrow ( ) ) ; records . borrow_mut ( ) . truncate ( 0 ) ; } ) ; }
Used to validate any captured log events.
Used to validate any captured log events .
asserter
F
asserter
F