Home
last modified time | relevance | path

Searched refs:and_then (Results 1 - 25 of 71) sorted by relevance

123

/third_party/rust/crates/rust-openssl/openssl/src/
H A Dec.rs811 .and_then(|key| { in from_group()
854 .and_then(|key| { in from_public_key()
857 .and_then(|key| { in from_public_key()
877 .and_then(|key| { in from_public_key_affine_coordinates()
880 .and_then(|key| { in from_public_key_affine_coordinates()
944 .and_then(|key| { in generate()
947 .and_then(|key| cvt(ffi::EC_KEY_generate_key(key.as_ptr())).map(|_| key)) in generate()
961 .and_then(|key| { in from_private_components()
964 .and_then(|key| { in from_private_components()
971 .and_then(|ke in from_private_components()
[all...]
H A Dderive.rs81 .and_then(|ctx| cvt(ffi::EVP_PKEY_derive_init(ctx.0)).map(|_| ctx)) in new()
/third_party/rust/crates/rust-cexpr/tests/
H A 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/version_check/src/
H A Dchannel.rs31 .and_then(|(version, _)| version) in read()
32 .and_then(|version| Channel::parse(&version)) in read()
H A Ddate.rs24 .and_then(|(_, date)| date) in read()
25 .and_then(|date| Date::parse(&date)) in read()
H A Dversion.rs23 .and_then(|(version, _)| version) in read()
24 .and_then(|version| Version::parse(&version)) in read()
/third_party/rust/crates/rust-cexpr/src/
H A 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/
H A 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/which-rs/src/
H A 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()
H A Dhelper.rs5 let ext = path.as_ref().extension().and_then(|e| e.to_str()); in has_executable_extension()
/third_party/rust/crates/clang-sys/src/
H A 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/bindgen/bindgen/ir/
H A 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()
H A Denum_ty.rs68 .and_then(|et| Item::from_ty(&et, declaration, None, ctx).ok()); in from_ty()
72 repr.and_then(|r| ctx.resolve_type(r).safe_canonical_type(ctx)); in from_ty()
H A Dtemplate.rs265 template_ref.and_then(|cur| cur.referenced()) in from_ty()
/third_party/rust/crates/quote/src/
H A Dspanned.rs37 .and_then(|last| first.join(last)) in join_spans()
/third_party/rust/crates/bitflags/tests/
H A Dcompile.rs36 if entry.path().extension().and_then(OsStr::to_str) == Some("beta") { in prepare_stderr_files()
/third_party/rust/crates/bindgen/bindgen-tests/
H A Dbuild.rs27 match entry.path().extension().and_then(OsStr::to_str) { in main()
/third_party/rust/crates/nom/tests/
H A Dfloat.rs25 .and_then(|s| if s[0] == b'-' { Some(-1f32) } else { None }) in float()
/third_party/rust/crates/autocfg/src/
H A Dlib.rs399 .and_then(|target| { in dir_contains_target()
400 dir.to_str().and_then(|dir| { in dir_contains_target()
/third_party/rust/crates/syn/src/
H A Dparse.rs633 if group.0.skip().and_then(Cursor::skip).map_or(false, peek) { in peek3()
640 .and_then(Cursor::skip) in peek3()
/third_party/rust/crates/aho-corasick/src/
H A Ddfa.rs315 .and_then(|m| m.get(match_index)) in get_match()
382 .and_then(|m| m.get(match_index)) in get_match()
461 .and_then(|m| m.get(match_index)) in get_match()
/third_party/rust/crates/clang-sys/build/
H A Dstatic.rs72 .filter_map(|l| l.ok().and_then(|l| get_library_name(&l))) in get_clang_libraries()
/third_party/rust/crates/cxx/macro/src/
H A Dload.rs55 let memmap = File::open(&ast_dump_path).and_then(|file| unsafe { Mmap::map(&file) }); in load()
/third_party/rust/crates/syn/examples/dump-syntax/src/
H A Dmain.rs102 let code_line = match start.line.checked_sub(1).and_then(|n| code.lines().nth(n)) { in render_location()
/third_party/rust/crates/unicode-ident/generate/src/
H A Dmain.rs122 while let Some(next) = halfchunkmap.get_mut(&back).and_then(VecDeque::pop_front) { in main()

Completed in 12 milliseconds

123