/third_party/rust/crates/tracing/tracing-subscriber/src/layer/ |
D | tests.rs | 57 .and_then(NopLayer) in two_layers_are_subscriber() 65 .and_then(NopLayer) in three_layers_are_subscriber() 66 .and_then(NopLayer) in three_layers_are_subscriber() 73 let layers = NopLayer.and_then(NopLayer).and_then(NopLayer); in three_layers_are_layer() 90 .and_then(NopLayer) in downcasts_to_subscriber() 91 .and_then(NopLayer) in downcasts_to_subscriber() 101 .and_then(StringLayer2("layer_2")) in downcasts_to_layer() 102 .and_then(StringLayer3("layer_3")) in downcasts_to_layer() 177 .and_then(NopLayer.with_filter(LevelFilter::TRACE)), in mixed_with_unfiltered_layered() 195 .with(NopLayer.with_filter(LevelFilter::INFO).and_then(NopLayer)) in mixed_layered() [all …]
|
/third_party/rust/crates/memchr/bench/src/memchr/ |
D | inputs.rs | 120 self.never(1).and_then(|bytes| Search1::new(self.corpus, bytes)) in never1() 124 self.never(2).and_then(|bytes| Search2::new(self.corpus, bytes)) in never2() 128 self.never(3).and_then(|bytes| Search3::new(self.corpus, bytes)) in never3() 142 self.rare(1).and_then(|bytes| Search1::new(self.corpus, bytes)) in rare1() 146 self.rare(2).and_then(|bytes| Search2::new(self.corpus, bytes)) in rare2() 150 self.rare(3).and_then(|bytes| Search3::new(self.corpus, bytes)) in rare3() 164 self.uncommon(1).and_then(|bytes| Search1::new(self.corpus, bytes)) in uncommon1() 168 self.uncommon(2).and_then(|bytes| Search2::new(self.corpus, bytes)) in uncommon2() 172 self.uncommon(3).and_then(|bytes| Search3::new(self.corpus, bytes)) in uncommon3() 186 self.common(1).and_then(|bytes| Search1::new(self.corpus, bytes)) in common1() [all …]
|
/third_party/rust/crates/num-traits/src/ |
D | cast.rs | 24 self.to_i64().as_ref().and_then(ToPrimitive::to_isize) in to_isize() 31 self.to_i64().as_ref().and_then(ToPrimitive::to_i8) in to_i8() 38 self.to_i64().as_ref().and_then(ToPrimitive::to_i16) in to_i16() 45 self.to_i64().as_ref().and_then(ToPrimitive::to_i32) in to_i32() 70 self.to_u64().as_ref().and_then(ToPrimitive::to_usize) in to_usize() 77 self.to_u64().as_ref().and_then(ToPrimitive::to_u8) in to_u8() 84 self.to_u64().as_ref().and_then(ToPrimitive::to_u16) in to_u16() 91 self.to_u64().as_ref().and_then(ToPrimitive::to_u32) in to_u32() 117 self.to_f64().as_ref().and_then(ToPrimitive::to_f32) in to_f32() 131 None => self.to_u64().as_ref().and_then(ToPrimitive::to_f64), in to_f64() [all …]
|
/third_party/rust/crates/nix/test/ |
D | test_mount.rs | 73 .and_then(|mut f| f.write(SCRIPT_CONTENTS)) in test_mount_tmpfs_without_flags_allows_rwx() 79 .and_then(|mut f| f.read_to_end(&mut buf)) in test_mount_tmpfs_without_flags_allows_rwx() 141 .and_then(|mut f| f.write(SCRIPT_CONTENTS)) in test_mount_noexec_disallows_exec() 192 .and_then(|mut f| f.write(SCRIPT_CONTENTS)) in test_mount_bind() 204 .and_then(|mut f| f.read_to_end(&mut buf)) in test_mount_bind() 229 .and_then(|mut f| f.write(format!("1000 {} 1\n", uid).as_bytes())) in setup_namespaces()
|
/third_party/rust/crates/clap/clap_derive/src/utils/ |
D | ty.rs | 63 sub_type(field_ty).and_then(sub_type).unwrap_or(field_ty) in inner_type() 66 .and_then(sub_type) in inner_type() 67 .and_then(sub_type) in inner_type() 101 .and_then(|segment| { in subty_if() 103 only_one(args.args.iter()).and_then(|genneric| { in subty_if()
|
/third_party/rust/crates/tracing/tracing-subscriber/tests/ |
D | cached_layer_filters_dont_break_other_layers.rs | 27 let unfiltered = unfiltered1.and_then(unfiltered2); in layered_layer_filters() 33 .and_then(filtered2.with_filter(filter())); in layered_layer_filters() 77 let layered1 = filtered1.with_filter(filter()).and_then(unfiltered1); in mixed_layered() 78 let layered2 = unfiltered2.and_then(filtered2.with_filter(filter())); in mixed_layered()
|
D | unhinted_layer_filters_dont_break_other_layers.rs | 27 let unfiltered = unfiltered1.and_then(unfiltered2); in layered_layer_filters() 33 .and_then(filtered2.with_filter(filter())); in layered_layer_filters() 77 let layered1 = filtered1.with_filter(filter()).and_then(unfiltered1); in mixed_layered() 78 let layered2 = unfiltered2.and_then(filtered2.with_filter(filter())); in mixed_layered()
|
D | hinted_layer_filters_dont_break_other_layers.rs | 28 let unfiltered = unfiltered1.and_then(unfiltered2); in layered_layer_filters() 34 .and_then(filtered2.with_filter(filter())); in layered_layer_filters() 81 let layered1 = filtered1.with_filter(filter()).and_then(unfiltered1); in mixed_layered() 82 let layered2 = unfiltered2.and_then(filtered2.with_filter(filter())); in mixed_layered()
|
/third_party/rust/crates/tracing/tracing-subscriber/src/registry/ |
D | extensions.rs | 139 .and_then(|boxed| { in insert() 154 .and_then(|boxed| (&**boxed as &(dyn Any + 'static)).downcast_ref()) in get() 161 .and_then(|boxed| (&mut **boxed as &mut (dyn Any + 'static)).downcast_mut()) in get_mut() 168 self.map.remove(&TypeId::of::<T>()).and_then(|boxed| { in remove()
|
D | sharded.rs | 333 .and_then(|spans| { in current_span() 576 .and_then(AssertionLayer) in multiple_layers_can_access_closed_span() 757 .and_then(close_layer) in spans_are_removed_from_registry() 785 .and_then(close_layer) in spans_are_only_closed_when_the_last_ref_drops() 818 .and_then(close_layer) in span_enter_guards_are_dropped_out_of_order()
|
/third_party/rust/crates/pin-project-lite/tests/doc/ |
D | build.rs | 13 .and_then(|rustc| Command::new(rustc).arg("--version").output().ok()) in is_nightly() 14 .and_then(|output| String::from_utf8(output.stdout).ok()) in is_nightly()
|
/third_party/rust/crates/pin-project-lite/tests/no-core/ |
D | build.rs | 13 .and_then(|rustc| Command::new(rustc).arg("--version").output().ok()) in is_nightly() 14 .and_then(|output| String::from_utf8(output.stdout).ok()) in is_nightly()
|
/third_party/rust/crates/rust-cexpr/tests/ |
D | clang.rs | 33 .and_then(|v| i64::from_str(&v).ok()) in test_definition() 81 .and_then(|v| f64::from_str(&v).ok()) in test_definition() 86 .and_then(|v| u64::from_str(v).ok()) in test_definition() 92 .and_then(|v| u32::from_str(v).ok()) in test_definition() 93 .and_then(char::from_u32) in test_definition()
|
/third_party/rust/crates/which-rs/src/ |
D | lib.rs | 57 which_all(binary_name).and_then(|mut i| i.next().ok_or(Error::CannotFindBinaryPath)) in which() 81 which_all_global(binary_name).and_then(|mut i| i.next().ok_or(Error::CannotFindBinaryPath)) in which_global() 156 .and_then(|mut i| i.next().ok_or(Error::CannotFindBinaryPath)) in which_in() 355 .and_then(|mut i| i.next().ok_or(Error::CannotFindBinaryPath)) in first_result() 525 .and_then(|p| p.canonicalize().map_err(|_| Error::CannotCanonicalize)) in new() 556 .and_then(|p| p.canonicalize().map_err(|_| Error::CannotCanonicalize)) in new_in()
|
/third_party/rust/crates/rust-cexpr/src/ |
D | literal.rs | 167 .and_then(|i| u64::from_str_radix(i, radix).ok()) in c_raw_escape() 177 .and_then(|i| u32::from_str_radix(i, 16).ok()) in c_unicode_escape() 178 .and_then(char::from_u32) in c_unicode_escape() 244 .and_then(|i| u64::from_str_radix(i, radix).ok()) in c_int_radix() 337 |v| str::from_utf8(v).ok().and_then(|i| f64::from_str(i).ok()), in c_float()
|
/third_party/rust/crates/os_str_bytes/src/windows/wtf8/ |
D | convert.rs | 97 high.and_then(|x| x.checked_mul(4)) in size_hint() 98 .and_then(|x| x.checked_add(shifts)), in size_hint() 172 high.and_then(|x| x.checked_add(additional)), in size_hint()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
D | ec.rs | 756 .and_then(|key| { in from_group() 799 .and_then(|key| { in from_public_key() 802 .and_then(|key| { in from_public_key() 822 .and_then(|key| { in from_public_key_affine_coordinates() 825 .and_then(|key| { in from_public_key_affine_coordinates() 889 .and_then(|key| { in generate() 892 .and_then(|key| cvt(ffi::EC_KEY_generate_key(key.as_ptr())).map(|_| key)) in generate() 906 .and_then(|key| { in from_private_components() 909 .and_then(|key| { in from_private_components() 916 .and_then(|key| { in from_private_components()
|
/third_party/rust/crates/version_check/src/ |
D | channel.rs | 31 .and_then(|(version, _)| version) in read() 32 .and_then(|version| Channel::parse(&version)) in read()
|
D | date.rs | 24 .and_then(|(_, date)| date) in read() 25 .and_then(|date| Date::parse(&date)) in read()
|
/third_party/rust/crates/tracing/tracing-subscriber/tests/layer_filters/ |
D | trees.rs | 37 .and_then( in basic_trees() 123 .and_then(a_layer) in filter_span_scopes() 124 .and_then(b_layer) in filter_span_scopes()
|
/third_party/rust/crates/bindgen/bindgen/ir/ |
D | var.rs | 323 .and_then(|t| t.safe_canonical_type(ctx)); in parse() 338 let mut val = cursor.evaluate().and_then(|v| v.as_int()); in parse() 353 .and_then(|v| v.as_double()) in parse() 358 .and_then(|v| v.as_literal_string()) in parse()
|
/third_party/rust/crates/clang-sys/src/ |
D | support.rs | 211 let major = numbers.next().and_then(parse_version_number)?; in parse_version() 212 let minor = numbers.next().and_then(parse_version_number)?; in parse_version() 213 let subminor = numbers.next().and_then(parse_version_number).unwrap_or(0); in parse_version()
|
/third_party/rust/crates/tracing/tracing-mock/src/ |
D | subscriber.rs | 254 .and_then(|id| spans.get(id)) in event() 255 .or_else(|| stack.last().and_then(|id| spans.get(id))) in event() 316 .and_then(|id| spans.get(id)) in new_span() 317 .or_else(|| stack.last().and_then(|id| spans.get(id))) in new_span() 376 curr.as_ref().and_then(|id| spans.get(id)).map(|s| s.name) in exit()
|
/third_party/rust/crates/tracing/tracing-core/src/spin/ |
D | mutex.rs | 87 .and_then(|()| (&*guard).fmt(f)) in fmt() 88 .and_then(|()| write!(f, "}}")), in fmt()
|
D | once.rs | 19 .and_then(|()| s.fmt(f)) in fmt() 20 .and_then(|()| write!(f, "}}")), in fmt()
|