Home
last modified time | relevance | path

Searched refs:and_then (Results 1 – 25 of 106) sorted by relevance

12345

/third_party/rust/crates/tracing/tracing-subscriber/src/layer/
Dtests.rs57 .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/
Dinputs.rs120 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/
Dcast.rs24 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/
Dtest_mount.rs73 .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/
Dty.rs63 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/
Dcached_layer_filters_dont_break_other_layers.rs27 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()
Dunhinted_layer_filters_dont_break_other_layers.rs27 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()
Dhinted_layer_filters_dont_break_other_layers.rs28 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/
Dextensions.rs139 .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()
Dsharded.rs333 .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/
Dbuild.rs13 .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/
Dbuild.rs13 .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/
Dclang.rs33 .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/
Dlib.rs57 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/
Dliteral.rs167 .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/
Dconvert.rs97 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/
Dec.rs756 .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/
Dchannel.rs31 .and_then(|(version, _)| version) in read()
32 .and_then(|version| Channel::parse(&version)) in read()
Ddate.rs24 .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/
Dtrees.rs37 .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/
Dvar.rs323 .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/
Dsupport.rs211 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/
Dsubscriber.rs254 .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/
Dmutex.rs87 .and_then(|()| (&*guard).fmt(f)) in fmt()
88 .and_then(|()| write!(f, "}}")), in fmt()
Donce.rs19 .and_then(|()| s.fmt(f)) in fmt()
20 .and_then(|()| write!(f, "}}")), in fmt()

12345