Home
last modified time | relevance | path

Searched refs:ok_or (Results 1 - 22 of 22) sorted by relevance

/third_party/rust/crates/autocfg/src/
H A Dversion.rs50 let major = try!(iter.next().ok_or(error::from_str("missing major version"))); in from_rustc()
51 let minor = try!(iter.next().ok_or(error::from_str("missing minor version"))); in from_rustc()
52 let patch = try!(iter.next().ok_or(error::from_str("missing patch version"))); in from_rustc()
/third_party/rust/crates/rustix/src/path/
H A Darg.rs208 self.to_str().ok_or(io::Errno::INVAL) in as_str()
247 OsString::as_os_str(self).to_str().ok_or(io::Errno::INVAL) in as_str()
285 self.as_os_str().to_str().ok_or(io::Errno::INVAL) in as_str()
324 self.as_os_str().to_str().ok_or(io::Errno::INVAL) in as_str()
366 .ok_or(io::Errno::INVAL) in as_str()
404 self.as_os_str().to_str().ok_or(io::Errno::INVAL) in as_str()
590 (**self).to_str().ok_or(io::Errno::INVAL) in as_str()
668 self.as_os_str().to_str().ok_or(io::Errno::INVAL) in as_str()
707 self.as_path().to_str().ok_or(io::Errno::INVAL) in as_str()
748 self.as_path().to_str().ok_or(i in as_str()
[all...]
/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()
H A Dfinder.rs76 let p = paths.ok_or(Error::CannotFindBinaryPath)?; in find()
98 let p = paths.ok_or(Error::CannotFindBinaryPath)?; in find_re()
/third_party/rust/crates/clap/clap_lex/src/
H A Dlib.rs30 //! let s = s.map(|s| s.to_str().ok_or(s));
341 let flag = flag.to_str().ok_or(flag); in to_long()
423 self.next().ok_or(i)?.map_err(|_| i)?; in display()
/third_party/rust/crates/regex/regex-syntax/src/
H A Dunicode.rs647 .ok_or(Error::PropertyValueNotFound),
674 .ok_or(Error::PropertyValueNotFound)
699 .ok_or(Error::PropertyValueNotFound)
723 .ok_or(Error::PropertyNotFound)
751 .ok_or(Error::PropertyValueNotFound)
775 .ok_or(Error::PropertyValueNotFound)
799 .ok_or(Error::PropertyValueNotFound)
/third_party/rust/crates/rustix/src/process/
H A Dprctl.rs191 UnalignedAccessControl::from_bits(r).ok_or(io::Errno::RANGE) in unaligned_access_control()
232 FloatingPointEmulationControl::from_bits(r).ok_or(io::Errno::RANGE) in floating_point_emulation_control()
1048 PointerAuthenticationKeys::from_bits(r).ok_or(io::Errno::RANGE) in enabled_pointer_authentication_keys()
H A Dprocctl.rs176 let pid = unsafe { Pid::from_raw(pid as RawPid) }.ok_or(io::Errno::RANGE)?; in trace_status()
/third_party/rust/crates/clap/examples/
H A Drepl.rs30 let args = shlex::split(line).ok_or("error: Invalid quoting")?; in respond()
/third_party/rust/crates/os_str_bytes/src/windows/wtf8/
H A Dcode_points.rs41 let &byte = self.iter.peek().ok_or(EncodingError::End())?; in consume_next()
/third_party/rust/crates/codespan/codespan-reporting/src/
H A Dfiles.rs379 self.files.get(file_id).ok_or(Error::FileMissing) in get()
/third_party/rust/crates/codespan/codespan-reporting/examples/
H A Dcustom_files.rs119 .ok_or(files::Error::FileMissing) in get()
/third_party/rust/crates/bindgen/bindgen/ir/
H A Dfunction.rs545 .ok_or(ParseError::Continue)? in from_ty()
547 ty.ret_type().ok_or(ParseError::Continue)? in from_ty()
H A Dcomp.rs611 ctx.resolve_type(bitfield.ty()).layout(ctx).ok_or(())?; in bitfields_to_allocation_units()
/third_party/rust/crates/nom/examples/
H A Ds_expression.rs364 .and_then(|(_, exp)| eval_expression(exp).ok_or("Eval failed".to_string())) in eval_from_str()
/third_party/rust/crates/log/src/
H A Dlib.rs534 fn ok_or<T, E>(t: Option<T>, e: E) -> Result<T, E> { in ok_or() functions
563 ok_or( in from_str()
744 ok_or( in from_str()
/third_party/rust/crates/humantime/src/
H A Dduration.rs90 self.checked_mul(other).ok_or(Error::NumberOverflow) in mul()
93 self.checked_add(other).ok_or(Error::NumberOverflow) in add()
157 let mut n = self.parse_first_char()?.ok_or(Error::Empty)?; in parse()
165 .ok_or(Error::NumberOverflow)?; in parse()
/third_party/rust/crates/rustix/src/thread/
H A Dprctl.rs451 CapabilitiesSecureBits::from_bits(r).ok_or(io::Errno::RANGE) in capabilities_secure_bits()
/third_party/rust/crates/rustix/src/backend/libc/net/
H A Dsyscalls.rs504 l_linger = l_linger.checked_add(1).ok_or(io::Errno::INVAL)?;
/third_party/rust/crates/rust-openssl/openssl/src/ssl/test/
H A Dmod.rs459 ssl::select_next_proto(b"\x08http/1.1\x08spdy/3.1", client).ok_or(ssl::AlpnError::NOACK) in test_alpn_server_advertise_multiple()
475 .ok_or(ssl::AlpnError::ALERT_FATAL) in test_alpn_server_select_none_fatal()
493 ssl::select_next_proto(b"\x08http/1.1\x08spdy/3.1", client).ok_or(ssl::AlpnError::NOACK) in test_alpn_server_select_none()
/third_party/rust/crates/rustix/src/backend/linux_raw/net/
H A Dsyscalls.rs897 l_linger = l_linger.checked_add(1).ok_or(io::Errno::INVAL)?;
/third_party/rust/crates/bindgen/bindgen/codegen/
H A Dmod.rs3691 self.layout(ctx).ok_or(error::Error::NoLayoutForOpaqueBlob) in try_get_layout()
3904 .ok_or(error::Error::NoLayoutForOpaqueBlob) in try_get_layout()

Completed in 25 milliseconds