pub fn verify_bunyan_records<'a, 'b, I>(
    iter: I,
    expected: &'a BunyanLogRecordSpec,
) where
    I: Iterator<Item = &'b BunyanLogRecord>,
{
    for record in iter {
        if let Some(ref expected_name) = expected.name {
            assert_eq!(expected_name, &record.name);
        }
        if let Some(ref expected_hostname) = expected.hostname {
            assert_eq!(expected_hostname, &record.hostname);
        }
        if let Some(expected_pid) = expected.pid {
            assert_eq!(expected_pid, record.pid);
        }
        if let Some(expected_v) = expected.v {
            assert_eq!(expected_v, record.v);
        }
    }
}
/**
 * Verify that the key fields of the log records emitted by `iter` match the
 * corresponding values in `expected`.  Fields that are `None` in `expected`
 * will not be checked.
 */
Verify that the key fields of the log records emitted by `iter` match the
corresponding values in `expected`.  Fields that are `None` in `expected`
will not be checked.
Verify that the key fields of the log records emitted by ` iter ` match the corresponding values in ` expected ` . Fields that are ` None ` in ` expected ` will not be checked .
pub fn verify_bunyan_records<'a, 'b, I>(
    iter: I,
    expected: &'a BunyanLogRecordSpec,
) where
    I: Iterator<Item = &'b BunyanLogRecord>,
{
    for record in iter {
        if let Some(ref expected_name) = expected.name {
            assert_eq!(expected_name, &record.name);
        }
        if let Some(ref expected_hostname) = expected.hostname {
            assert_eq!(expected_hostname, &record.hostname);
        }
        if let Some(expected_pid) = expected.pid {
            assert_eq!(expected_pid, record.pid);
        }
        if let Some(expected_v) = expected.v {
            assert_eq!(expected_v, record.v);
        }
    }
}
pub fn verify_bunyan_records < ' a , ' b , I > ( iter : I , expected : & ' a BunyanLogRecordSpec , ) where I : Iterator < Item = & ' b BunyanLogRecord > , { for record in iter { if let Some ( ref expected_name ) = expected . name { assert_eq ! ( expected_name record name ) ; } if let Some ( ref expected_hostname ) = expected . hostname { assert_eq ! ( expected_hostname record hostname ) ; } if let Some ( expected_pid ) = expected . pid { assert_eq ! ( expected_pid record pid ) ; } if let Some ( expected_v ) = expected . v { assert_eq ! ( expected_v record v ) ; } } }
Verify that the key fields of the log records emitted by `iter` match the
 corresponding values in `expected`.
Verify that the key fields of the log records emitted by ` iter ` match the corresponding values in ` expected ` .
iter
I
expected
&'a BunyanLogRecordSpec
iter
I
expected
&'a BunyanLogRecordSpec