Home
last modified time | relevance | path

Searched refs:unwrap_or_default (Results 1 – 25 of 27) sorted by relevance

12

/external/rust/cxx/gen/cmd/src/
Dapp.rs67 .unwrap_or_default() in from_args()
84 for path in matches.values_of_os(OUTPUT).unwrap_or_default() { in from_args()
Dtest.rs49 let version = option_env!("CARGO_PKG_VERSION").unwrap_or_default(); in test_help()
/external/rust/crates/bindgen/src/ir/analysis/
Dderive.rs238 self.can_derive.get(&t.into()).cloned().unwrap_or_default(); in constrain_type()
277 self.can_derive.get(&t.into()).cloned().unwrap_or_default(); in constrain_type()
434 .unwrap_or_default(); in constrain_join()
453 candidate.unwrap_or_default() in constrain_join()
/external/rust/crates/clap/src/args/
Darg_matches.rs969 let mut values = matches.values_of("").unwrap_or_default(); in test_default_values_with_shorter_lifetime()
982 let mut values = matches.values_of_os("").unwrap_or_default(); in test_default_osvalues_with_shorter_lifetime()
995 let mut indices = matches.indices_of("").unwrap_or_default(); in test_default_indices_with_shorter_lifetime()
/external/crosvm/sys_util/src/
Derrno.rs40 Error::new(e.raw_os_error().unwrap_or_default()) in from()
/external/rust/crates/futures-util/src/stream/try_stream/
Dtry_concat.rs50 break this.accum.take().unwrap_or_default(); in poll()
/external/rust/crates/futures-util/src/stream/stream/
Dconcat.rs47 return Poll::Ready(this.accum.take().unwrap_or_default()) in poll()
/external/rust/crates/protobuf/src/
Dsingular.rs343 pub fn unwrap_or_default(mut self) -> T { in unwrap_or_default() method
362 pub fn unwrap_or_default(mut self) -> T { in unwrap_or_default() method
/external/adhd/cras/client/cras_tests/src/
Darguments.rs140 let argument = matches.opt_str(option_name).unwrap_or_default(); in get_u32_param()
147 let argument = matches.opt_str(option_name).unwrap_or_default(); in get_usize_param()
/external/rust/cxx/gen/build/src/
Dcfg.rs289 .unwrap_or_default(); in default()
/external/rust/crates/bindgen/src/ir/
Dfunction.rs314 let cursor_args = cursor.args().unwrap_or_default().into_iter(); in args_from_ty_and_cursor()
315 let type_args = ty.args().unwrap_or_default().into_iter(); in args_from_ty_and_cursor()
Dcomp.rs453 annotations: annotations.unwrap_or_default(), in new()
Ditem.rs446 annotations: annotations.unwrap_or_default(), in new()
/external/crosvm/devices/src/virtio/
Dwl.rs969 pfn: vfd.pfn().unwrap_or_default(), in new_alloc()
970 size: vfd.size().unwrap_or_default() as u32, in new_alloc()
992 pfn: vfd.pfn().unwrap_or_default(), in new_dmabuf()
993 size: vfd.size().unwrap_or_default() as u32, in new_dmabuf()
1393 pfn: vfd.pfn().unwrap_or_default(), in next_recv()
1394 size: vfd.size().unwrap_or_default() as u32, in next_recv()
/external/crosvm/arch/src/
Dlib.rs388 let ranges = io_ranges.remove(&dev_idx).unwrap_or_default(); in generate_pci_root()
389 let device_ranges = device_ranges.remove(&dev_idx).unwrap_or_default(); in generate_pci_root()
/external/crosvm/devices/src/pci/
Dpci_root.rs91 .map(|v| u8::from_str_radix(v, 16).unwrap_or_default()) in from_string()
/external/rust/crates/mio/src/sys/windows/
Dtcp.rs148 l_linger: dur.map(|dur| dur.as_secs() as c_ushort).unwrap_or_default(), in set_linger()
/external/crosvm/devices/src/
Dserial.rs339 self.in_buffer.pop_front().unwrap_or_default() in read()
/external/rust/crates/android_logger/src/
Dlib.rs154 let module_path = record.module_path().unwrap_or_default().to_owned(); in log()
/external/rust/crates/mio/src/sys/unix/
Dtcp.rs138 .unwrap_or_default(), in set_linger()
/external/rust/crates/structopt-derive/src/
Dattrs.rs606 .unwrap_or_default(), in version()
Dlib.rs403 let name = std::env::var("CARGO_PKG_NAME").ok().unwrap_or_default(); in gen_clap()
/external/rust/crates/zip/src/
Dwrite.rs113 last_modified_time: DateTime::from_time(time::now()).unwrap_or_default(), in default()
/external/rust/cxx/gen/src/
Dwrite.rs93 .unwrap_or_default(); in write_data_structures()
115 .unwrap_or_default(); in write_data_structures()
/external/rust/crates/serde_derive/src/internals/
Dattr.rs1359 let mut borrowed_lifetimes = borrowed_lifetimes.get().unwrap_or_default(); in from_ast()

12