Home
last modified time | relevance | path

Searched refs:filter_map (Results 1 - 25 of 41) sorted by relevance

12

/third_party/rust/crates/nom/examples/
H A Djson_iterator.rs307 .filter_map(|(_, v)| v.object()) in hash()
309 .filter_map(|(user, v)| v.object().map(|o| (user, o))) in hash()
312 .filter_map(move |(_, v)| v.string().map(|s| (user, s))) in hash()
/third_party/ltp/testcases/kernel/mem/tunable/
H A Dmax_map_count.c59 static bool filter_map(const char *line) in filter_map() function
110 if (filter_map(line)) in count_maps()
/third_party/rust/crates/clang-sys/build/
H A Dcommon.rs206 .filter_map(Result::ok) in search_directory()
208 .filter_map(|p| { in search_directory()
312 for directory in directories.filter_map(Result::ok).filter(|p| p.is_dir()) { in search_libclang_directories()
H A Dstatic.rs49 .filter_map(|p| { in get_llvm_libraries()
72 .filter_map(|l| l.ok().and_then(|l| get_library_name(&l))) in get_clang_libraries()
/third_party/rust/crates/which-rs/src/
H A Dfinder.rs167 .filter_map(|s| { in append_extension()
217 for e in iter.filter_map(std::result::Result::ok) { in correct_casing()
/third_party/rust/crates/bindgen/bindgen/
H A Dregex_set.rs53 self.items.iter().enumerate().filter_map(move |(i, item)| { in unmatched_items()
/third_party/rust/crates/serde/serde_derive/src/
H A Dbound.rs49 .filter_map(|field| from_field(&field.attrs)) in with_where_predicates_from_fields()
71 .filter_map(|variant| from_variant(&variant.attrs)) in with_where_predicates_from_variants()
H A Dpretend.rs117 .filter_map(|variant| match variant.style { in pretend_fields_used_enum()
/third_party/rust/crates/clap/src/output/
H A Dhelp_template.rs355 .filter_map(|arg| arg.get_help_heading())
624 .filter_map(|f| f.get_visible_quoted_name().map(|name| display_width(&name))) in help()
629 .filter_map(|f| f.get_visible_help().map(|h| h.display_width())) in help()
796 .filter_map(PossibleValue::get_visible_quoted_name) in spec_vals()
/third_party/rust/crates/clap/clap_derive/src/utils/
H A Ddoc_comments.rs16 .filter_map(|attr| { in extract_doc_comment()
/third_party/rust/crates/clap/clap_complete/src/shells/
H A Dfish.rs168 .filter_map(|value| if value.is_hide_set() { in value_completion()
/third_party/rust/crates/syn/codegen/src/
H A Dsnapshot.rs102 .filter_map(|(i, ty)| { in format_field()
198 let fields = fields.iter().enumerate().filter_map(|(i, ty)| { in expand_impl_body()
229 let fields = fields.iter().filter_map(|(f, ty)| { in expand_impl_body()
H A Dhash.rs96 .filter_map(|(f, ty)| { in expand_impl_body()
H A Dparse.rs98 .filter_map(|variant| { in introspect_enum()
/third_party/rust/crates/clap/src/builder/
H A Ddebug_asserts.rs448 slice.windows(2).filter_map(|w| { in find_duplicates()
509 .filter_map(|x| { in _verify_positionals()
645 for p in (1..=num_p).rev().filter_map(|n| cmd.get_keymap().get(&n)) { in _verify_positionals()
810 .filter_map(|(_, _, default)| default.as_ref()), in assert_arg()
H A Darg.rs3748 .filter_map(|(c, v)| if *v { Some(c) } else { None }) in get_visible_short_aliases()
3793 .filter_map(|(s, v)| if *v { Some(s.as_str()) } else { None }) in get_visible_aliases()
/third_party/rust/crates/bindgen/bindgen/codegen/
H A Dimpl_debug.rs24 let processed_fields = fields.iter().filter_map(|f| match f { in gen_debug_impl()
H A Dmod.rs214 .filter_map(|&(flag, derive)| { in from()
1009 .filter_map(|p| p.as_template_param(ctx, &())) in codegen()
1123 .filter_map(|m| { in codegen()
2239 .filter_map(|field| match *field { in codegen()
/third_party/rust/crates/clap/clap_derive/src/derives/
H A Dsubcommand.rs357 .filter_map(|(variant, item)| { in gen_has_subcommand()
577 .filter_map(|(variant, item)| { in gen_update_from_arg_matches()
H A Dargs.rs374 .filter_map(|(_field, item)| { in gen_augment()
/third_party/rust/crates/clang-sys/src/
H A Dsupport.rs147 if let Some(path) = glob::glob(&pattern).ok()?.filter_map(|p| p.ok()).next() { in find()
/third_party/rust/crates/rust-cexpr/tests/
H A Dclang.rs269 .filter_map(|t| { in file_visit_macros()
/third_party/rust/crates/clap/src/parser/
H A Dvalidator.rs132 .filter_map(|(id, _)| { in validate_exclusive()
173 .filter_map(|c_id| { in build_conflict_err()
209 .filter_map(|key| self.cmd.find(key)) in build_conflict_err_usage()
/third_party/rust/crates/clap/clap_complete/src/
H A Ddynamic.rs390 .filter_map(|f| { in complete_arg()
440 values.extend(possible_values.into_iter().filter_map(|p| { in complete_arg_value()
511 .filter_map(Result::ok) in complete_path()
/third_party/rust/crates/bindgen/bindgen/ir/analysis/
H A Dderive.rs730 .filter_map(|(k, v)| if v != CanDerive::Yes { Some(k) } else { None }) in as_cannot_derive_set()

Completed in 23 milliseconds

12