Home
last modified time | relevance | path

Searched refs:Bounded (Results 1 – 25 of 34) sorted by relevance

12

/external/rust/crates/num-traits/src/
Dbounds.rs9 pub trait Bounded { trait
19 impl Bounded for $t { impl
49 impl<T: Bounded> Bounded for Wrapping<T> {
77 impl<$($name: Bounded,)*> Bounded for ($($name,)*) { impl
98 assert_eq!(<Wrapping<$t> as Bounded>::min_value().0, <$t>::min_value()); in wrapping_bounded()
99 assert_eq!(<Wrapping<$t> as Bounded>::max_value().0, <$t>::max_value()); in wrapping_bounded()
113 assert_eq!(<Wrapping<$t> as Bounded>::min_value().0, <$t>::min_value()); in wrapping_bounded_i128()
114 assert_eq!(<Wrapping<$t> as Bounded>::max_value().0, <$t>::max_value()); in wrapping_bounded_i128()
124 fn require_bounded<T: Bounded>(_: &T) {} in wrapping_is_bounded()
Dint.rs3 use bounds::Bounded;
39 + Bounded
Dlib.rs32 pub use bounds::Bounded;
/external/rust/crates/num-traits/tests/
Dcast.rs12 use num_traits::Bounded;
341 assert_eq!(T::$from(Bounded::min_value()).map(New), in newtype_from_primitive()
342 New::<T>::$from(Bounded::min_value())); in newtype_from_primitive()
343 assert_eq!(T::$from(Bounded::max_value()).map(New), in newtype_from_primitive()
344 New::<T>::$from(Bounded::max_value())); in newtype_from_primitive()
379 assert_eq!(T::$to(&Bounded::min_value()), in newtype_to_primitive()
380 New::<T>::$to(&New(Bounded::min_value()))); in newtype_to_primitive()
381 assert_eq!(T::$to(&Bounded::max_value()), in newtype_to_primitive()
382 New::<T>::$to(&New(Bounded::max_value()))); in newtype_to_primitive()
386 fn check<T: PartialEq + Debug + Bounded + ToPrimitive>() { in newtype_to_primitive()
/external/rust/crates/regex/src/
Dbacktrack.rs44 pub struct Bounded<'a, 'm, 'r, 's, I> { struct
79 impl<'a, 'm, 'r, 's, I: Input> Bounded<'a, 'm, 'r, 's, I> { implementation
96 let mut b = Bounded { in exec()
Dexec.rs1124 backtrack::Bounded::exec( in exec_backtrack()
1134 backtrack::Bounded::exec( in exec_backtrack()
Dcompile.rs562 Range(hir::RepetitionRange::Bounded(min, max)) => { in c_repeat()
/external/rust/crates/num-integer/benches/
Dgcd.rs10 use num_traits::{AsPrimitive, Bounded, Signed};
127 fn run_bench<T: Integer + Bounded + Copy + 'static>(b: &mut Bencher, gcd: fn(&T, &T) -> T) in run_bench()
/external/openscreen/third_party/abseil/src/absl/time/
Dclock_test.cc105 TEST(SleepFor, Bounded) { in TEST() argument
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/
Dclock_test.cc105 TEST(SleepFor, Bounded) { in TEST() argument
/external/webrtc/third_party/abseil-cpp/absl/time/
Dclock_test.cc105 TEST(SleepFor, Bounded) { in TEST() argument
/external/libtextclassifier/abseil-cpp/absl/time/
Dclock_test.cc105 TEST(SleepFor, Bounded) { in TEST() argument
/external/abseil-cpp/absl/time/
Dclock_test.cc105 TEST(SleepFor, Bounded) { in TEST() argument
/external/rust/crates/parking_lot/src/
Dcondvar.rs710 Bounded(Duration), enumerator
743 Timeout::Bounded(bound) => { in wait()
927 timeout: Timeout::Bounded(Duration::from_secs(1)),
/external/rust/crates/regex-syntax/src/hir/
Dprint.rs191 hir::RepetitionRange::Bounded(m, n) => { in visit_post()
Dtranslate.rs802 ast::RepetitionKind::Range(ast::RepetitionRange::Bounded( in hir_repetition()
806 hir::RepetitionKind::Range(hir::RepetitionRange::Bounded(m, n)) in hir_repetition()
1752 hir_range(true, hir::RepetitionRange::Bounded(1, 2), hir_lit("a"),) in repetition()
1766 hir::RepetitionRange::Bounded(1, 2), in repetition()
2894 hir::RepetitionRange::Bounded(5, 10), in ignore_whitespace()
Dmod.rs1399 RepetitionKind::Range(RepetitionRange::Bounded(m, _)) => m == 0, in is_match_empty()
1425 Bounded(u32, u32), enumerator
/external/rust/crates/crossbeam-channel/
DREADME.md77 [Bounded MPMC queue](http://www.1024cores.net/home/lock-free-algorithms/queues/bounded-mpmc-queue)
/external/rust/crates/regex-syntax/src/ast/
Dmod.rs1161 Bounded(u32, u32), enumerator
1171 RepetitionRange::Bounded(s, e) if s > e => false, in is_valid()
Dprint.rs207 Bounded(x, y) => write!(self.wtr, "{{{},{}}}", x, y), in fmt_repetition_range()
Dparse.rs1143 range = ast::RepetitionRange::Bounded(count_start, count_end); in parse_counted_repetition()
3204 ast::RepetitionRange::Bounded(5, 9) in parse_counted_repetition()
3288 ast::RepetitionRange::Bounded(5, 9) in parse_counted_repetition()
3302 ast::RepetitionRange::Bounded(5, 9) in parse_counted_repetition()
/external/python/cpython3/Doc/library/
Dasyncio-sync.rst339 Bounded Semaphore is a version of :class:`Semaphore` that raises
/external/rust/crates/regex-syntax/src/hir/literal/
Dmod.rs620 hir::RepetitionRange::Bounded(m, n) => (m, Some(n)), in prefixes()
696 hir::RepetitionRange::Bounded(m, n) => (m, Some(n)), in suffixes()
/external/rust/crates/regex-automata/src/nfa/
Dcompiler.rs492 hir::RepetitionRange::Bounded(min, max) => { in c_repetition()
/external/python/cpython2/Doc/library/
Dcollections.rst244 corresponding number of items are discarded from the opposite end. Bounded
400 Bounded length deques provide functionality similar to the ``tail`` filter

12