//
// Original Copyright 2017 Idan Arye
// Modifications Copyright 2023 Signal Messenger, LLC.
// SPDX-License-Identifier: AGPL-3.0-only
//
use Error;
use Spanned;
/// Return the value that fulfills the predicate if there is one in the iterator.
///
/// Produces an error if there is more than one matching value.