pub fn find(mut iter: impl Iterator<Item = CallState>) -> Self {
        iter.find(|state| {
            [
                CallState::IncomingRinging,
                CallState::IncomingWaiting,
                CallState::OutgoingAlerting,
                CallState::OutgoingDialing,
            ]
            .contains(&state)
        })
        .map(CallSetup::from)
        .unwrap_or(CallSetup::None)
    }
/// Find CallSetup state based on the first call in `iter` that is in a callsetup state.
Find CallSetup state based on the first call in `iter` that is in a callsetup state.
Find CallSetup state based on the first call in ` iter ` that is in a callsetup state .
pub fn find(mut iter: impl Iterator<Item = CallState>) -> Self {
        iter.find(|state| {
            [
                CallState::IncomingRinging,
                CallState::IncomingWaiting,
                CallState::OutgoingAlerting,
                CallState::OutgoingDialing,
            ]
            .contains(&state)
        })
        .map(CallSetup::from)
        .unwrap_or(CallSetup::None)
    }
pub fn find ( mut iter : impl Iterator < Item = CallState > ) -> Self { iter . find ( | state | { [ CallState :: IncomingRinging , CallState :: IncomingWaiting , CallState :: OutgoingAlerting , CallState :: OutgoingDialing , ] . contains ( & state ) } ) . map ( CallSetup :: from ) . unwrap_or ( CallSetup :: None ) }
Find CallSetup state based on the first call in `iter` that is in a callsetup state.
Find CallSetup state based on the first call in ` iter ` that is in a callsetup state .
iter
impl Iterator<Item = CallState>
iter
impl Iterator<Item = CallState>