Home
last modified time | relevance | path

Searched refs:exactly_one (Results 1 – 6 of 6) sorted by relevance

/external/rust/crates/itertools/tests/
Dtest_core.rs249 fn exactly_one() { in exactly_one() function
250 assert_eq!((0..10).filter(|&x| x == 2).exactly_one().unwrap(), 2); in exactly_one()
251 assert!((0..10).filter(|&x| x > 1 && x < 4).exactly_one().unwrap_err().eq(2..4)); in exactly_one()
252 assert!((0..10).filter(|&x| x > 1 && x < 5).exactly_one().unwrap_err().eq(2..5)); in exactly_one()
253 assert!((0..10).filter(|&_| false).exactly_one().unwrap_err().eq(0..0)); in exactly_one()
Dtest_std.rs1047 [].iter().exactly_one()?; in exactly_one_question_mark_return()
Dquick.rs1192 let ret = a.iter().cloned().exactly_one();
/external/python/pybind11/include/pybind11/detail/
Dcommon.h605 struct exactly_one {
613 struct exactly_one<P, Default> { using type = Default; };
616 using exactly_one_t = typename exactly_one<Predicate, Default, Ts...>::type;
/external/rust/crates/itertools/
DCHANGELOG.md18 …- Added a [`.exactly_one()`](https://docs.rs/itertools/0.8.1/itertools/trait.Itertools.html#method…
/external/rust/crates/itertools/src/
Dlib.rs2997 fn exactly_one(mut self) -> Result<Self::Item, ExactlyOneError<Self>> in exactly_one() method