/external/rust/android-crates-io/crates/tracing-attributes/tests/ |
D | fields.rs | 54 .with_value(&"bar") in fields() 55 .and(expect::field("dsa").with_value(&true)) in fields() 56 .and(expect::field("num").with_value(&1)) in fields() 68 .with_value(&"hello world") in expr_field() 69 .and(expect::field("len").with_value(&"hello world".len())) in expr_field() 81 .with_value(&"hello world") in two_expr_fields() 82 .and(expect::field("s.len").with_value(&"hello world".len())) in two_expr_fields() 83 .and(expect::field("s.is_empty").with_value(&false)) in two_expr_fields() 97 .with_value(&tracing::field::display("hello world")) in clashy_expr_field() 98 .and(expect::field("s.len").with_value(&"hello world".len())) in clashy_expr_field() [all …]
|
D | destructuring.rs | 16 .with_value(&format_args!("1")) in destructure_tuples() 17 .and(expect::field("arg2").with_value(&format_args!("2"))) in destructure_tuples() 45 .with_value(&format_args!("1")) in destructure_nested_tuples() 46 .and(expect::field("arg2").with_value(&format_args!("2"))) in destructure_nested_tuples() 47 .and(expect::field("arg3").with_value(&format_args!("3"))) in destructure_nested_tuples() 48 .and(expect::field("arg4").with_value(&format_args!("4"))) in destructure_nested_tuples() 75 .with_fields(expect::field("arg1").with_value(&1usize).only()), in destructure_refs() 103 .with_value(&format_args!("1")) in destructure_tuple_structs() 104 .and(expect::field("arg2").with_value(&format_args!("2"))) in destructure_tuple_structs() 144 .with_value(&format_args!("1")) in destructure_structs() [all …]
|
D | instrument.rs | 69 .with_value(&2usize) in fields() 70 .and(expect::field("arg2").with_value(&false)) in fields() 71 .and(expect::field("arg3").with_value(&"Cool".to_string())) in fields() 81 .with_value(&3usize) in fields() 82 .and(expect::field("arg2").with_value(&true)) in fields() 83 .and(expect::field("arg3").with_value(&"Still Cool".to_string())) in fields() 129 .with_fields(expect::field("arg1").with_value(&2usize).only()), in skip() 137 .with_fields(expect::field("arg1").with_value(&3usize).only()), in skip() 176 .with_value(&format_args!("Foo")) in generics() 177 .and(expect::field("arg2").with_value(&format_args!("false"))), in generics() [all …]
|
D | ret.rs | 29 .with_fields(expect::field("return").with_value(&tracing::field::debug(42))) in test() 53 .with_fields(expect::field("return").with_value(&tracing::field::debug(42))) in test_custom_target() 81 .with_fields(expect::field("return").with_value(&tracing::field::debug(42))) in test_warn() 108 .with_fields(expect::field("a").with_value(&tracing::field::display(2))) in test_mut() 113 .with_fields(expect::field("return").with_value(&tracing::field::debug(2))) in test_mut() 138 .with_fields(expect::field("return").with_value(&tracing::field::debug(42))) in test_async() 165 .with_fields(expect::field("return").with_value(&tracing::field::debug(42))) in test_impl_type() 190 .with_fields(expect::field("return").with_value(&tracing::field::display(42))) in test_dbg() 217 .with_value(&tracing::field::display(u8::try_from(1234).unwrap_err())) in test_ret_and_err() 246 .with_value(&tracing::field::debug(u8::try_from(123).unwrap())) in test_ret_and_ok() [all …]
|
D | async_fn.rs | 92 .event(expect::event().with_fields(expect::field("awaiting").with_value(&true))) in async_fn_only_enters_for_polls() 126 .event(expect::event().with_fields(expect::field("nested").with_value(&true))) in async_fn_nested() 209 .event(expect::event().with_fields(expect::field("val").with_value(&2u64))) in async_fn_with_async_trait() 216 .event(expect::event().with_fields(expect::field("val").with_value(&5u64))) in async_fn_with_async_trait() 266 .with_value(&5usize) in async_fn_with_async_trait_and_fields_expressions() 267 .and(expect::field("test").with_value(&tracing::field::debug(10))) in async_fn_with_async_trait_and_fields_expressions() 268 .and(expect::field("val").with_value(&42u64)) in async_fn_with_async_trait_and_fields_expressions() 269 .and(expect::field("val2").with_value(&42u64)), in async_fn_with_async_trait_and_fields_expressions() 342 .with_fields(expect::field("Self").with_value(&std::any::type_name::<TestImpl>())), in async_fn_with_async_trait_and_fields_expressions_with_generic_parameter() 348 .with_fields(expect::field("Self").with_value(&std::any::type_name::<TestImpl>())), in async_fn_with_async_trait_and_fields_expressions_with_generic_parameter() [all …]
|
D | err.rs | 75 .with_fields(expect::field("awaiting").with_value(&true)) in test_async() 131 .with_fields(expect::field("awaiting").with_value(&true)) in test_mut_async() 163 .with_fields(expect::field("x").with_value(&10usize).only()), in impl_trait_return_type() 198 .with_value(&tracing::field::debug(u8::try_from(1234).unwrap_err())), in test_err_dbg() 219 .with_value(&tracing::field::display(u8::try_from(1234).unwrap_err())), in test_err_display_default() 299 .with_value(&tracing::field::debug(u8::try_from(1234).unwrap_err())), in test_err_dbg_info()
|
/external/rust/android-crates-io/crates/tracing/tests/ |
D | event.rs | 27 .with_value(&42) 30 .with_value(&"life, the universe, and everything"), 61 expect::event().with_fields(expect::field("message").with_value( in event_with_message() 85 .with_value(&42) in message_without_delims() 87 expect::field("question").with_value(&"life, the universe, and everything"), in message_without_delims() 114 .with_value(&42) in string_message_without_delims() 116 expect::field("question").with_value(&"life, the universe, and everything"), in string_message_without_delims() 141 .with_value(&tracing::field::debug(format_args!( in one_with_everything() 146 .and(expect::field("foo").with_value(&666)) in one_with_everything() 147 .and(expect::field("bar").with_value(&false)) in one_with_everything() [all …]
|
D | span.rs | 348 .with_value(&display("hello from my span")) in moved_field() 377 .with_fields(expect::field("fields.bar").with_value(&true).only()), in dotted_field_name() 395 .with_value(&display("hello from my span")) in borrowed_field() 438 .with_value(&debug(3.234)) in move_field_out_of_struct() 439 .and(expect::field("y").with_value(&debug(-1.223))) in move_field_out_of_struct() 446 .with_fields(expect::field("position").with_value(&debug(&pos)).only()), in move_field_out_of_struct() 471 .with_value(&3.234) in float_values() 472 .and(expect::field("y").with_value(&-1.223)) in float_values() 555 .with_value(&5) in record_new_value_for_field() 556 .and(expect::field("baz").with_value(&false)) in record_new_value_for_field() [all …]
|
D | subscriber.rs | 65 .with_value(&display("hello from my span")) in boxed_subscriber() 98 .with_value(&display("hello from my span")) in arced_subscriber() 107 .with_fields(expect::field("message").with_value(&display("hello from my event"))), in arced_subscriber()
|
/external/emboss/runtime/cpp/test/ |
D | emboss_constant_view_test.cc | 41 auto with_value = MaybeConstantView</**/ ::std::uint8_t>(7); in TEST() local 42 auto copied_with_value = with_value; in TEST() 51 auto with_value = MaybeConstantView</**/ ::std::uint8_t>(7); in TEST() local 53 copied_with_value = with_value; in TEST()
|
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/itertools-0.11.0/src/ |
D | diff.rs | 51 None => return Some(Diff::Shorter(idx, put_back(i).with_value(i_elem))), in diff_with() 53 let remaining_i = put_back(i).with_value(i_elem); in diff_with() 54 let remaining_j = put_back(j).with_value(j_elem); in diff_with() 60 j.next().map(|j_elem| Diff::Longer(idx, put_back(j).with_value(j_elem))) in diff_with()
|
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/itertools-0.11.0/src/ |
D | diff.rs | 51 None => return Some(Diff::Shorter(idx, put_back(i).with_value(i_elem))), in diff_with() 53 let remaining_i = put_back(i).with_value(i_elem); in diff_with() 54 let remaining_j = put_back(j).with_value(j_elem); in diff_with() 60 j.next().map(|j_elem| Diff::Longer(idx, put_back(j).with_value(j_elem))) in diff_with()
|
/external/rust/android-crates-io/crates/itertools/src/ |
D | diff.rs | 91 None => return Some(Diff::Shorter(idx, put_back(i).with_value(i_elem))), in diff_with() 94 let remaining_i = put_back(i).with_value(i_elem); in diff_with() 95 let remaining_j = put_back(j).with_value(j_elem); in diff_with() 103 .map(|j_elem| Diff::Longer(idx, put_back(j).with_value(j_elem))) in diff_with()
|
/external/rust/android-crates-io/crates/once_cell/src/ |
D | lib.rs | 441 Some(value) => OnceCell::with_value(value.clone()), in clone() 464 OnceCell::with_value(value) in from() 475 pub const fn with_value(value: T) -> OnceCell<T> { in with_value() method 800 this.cell = OnceCell::with_value(value); in force_mut() 921 Some(value) => Self::with_value(value.clone()), in clone() 936 Self::with_value(value) in from() 955 pub const fn with_value(value: T) -> OnceCell<T> { in with_value() method 956 OnceCell(Imp::with_value(value)) in with_value() 1333 this.cell = OnceCell::with_value(value); in force_mut()
|
D | imp_cs.rs | 31 pub(crate) const fn with_value(value: T) -> OnceCell<T> { in with_value() method 34 value: Mutex::new(unsync::OnceCell::with_value(value)), in with_value()
|
D | race.rs | 377 pub fn with_value(value: Box<T>) -> Self { in with_value() method 462 Some(value) => OnceBox::with_value(Box::new(value.clone())), in clone()
|
D | imp_pl.rs | 32 pub(crate) const fn with_value(value: T) -> OnceCell<T> { in with_value() method
|
/external/rust/android-crates-io/crates/fragile/src/ |
D | sticky.rs | 89 fn with_value<F: FnOnce(*mut T) -> R, R>(&self, f: F) -> R { in with_value() method 154 self.with_value(|value| unsafe { &*value }) in get() 164 self.with_value(|value| unsafe { &mut *value }) in get_mut() 175 Ok(self.with_value(|value| unsafe { &*value })) in try_get() 189 Ok(self.with_value(|value| unsafe { &mut *value })) in try_get_mut()
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | parse_flags_from_env_test.cc | 45 std::string with_value; in TestParseFlagsFromEnv() local 51 tensorflow::Flag("with_value", &with_value, ""), in TestParseFlagsFromEnv() 63 CHECK_EQ(with_value, "a_value") << msg; in TestParseFlagsFromEnv()
|
/external/libcups/tools/ |
D | ipptool.c | 84 *with_value, /* Attribute must include this value */ member 223 static int with_value(ipptool_test_t *data, cups_array_t *errors, char *value, int flags, ipp_… 1058 …if (found && !with_value(data, NULL, expect->with_value, expect->with_flags, found, buffer, sizeof… in do_monitor_printer_state() 1089 if (!expect->with_value) in do_monitor_printer_state() 1746 if (found && expect->not_expect && !expect->with_value && !expect->with_value_from) in do_test() 1791 …else if (found && !with_value(data, NULL, expect->with_value, expect->with_flags, found, buffer, s… in do_test() 1799 …, "EXPECTED: %s %s /%s/", expect->name, with_flags_string(expect->with_flags), expect->with_value); in do_test() 1801 …"EXPECTED: %s %s \"%s\"", expect->name, with_flags_string(expect->with_flags), expect->with_value); in do_test() 1803 …with_value(data, data->errors, expect->with_value, expect->with_flags, found, buffer, sizeof(buffe… in do_test() 1862 if (!expect->with_value) in do_test() [all …]
|
/external/rust/android-crates-io/crates/tracing-subscriber/tests/ |
D | field_filter.rs | 91 expect::field("enabled").with_value(&true), in record_after_created()
|
/external/rust/android-crates-io/crates/once_cell/tests/it/ |
D | unsync_once_cell.rs | 21 const CELL: OnceCell<i32> = OnceCell::with_value(12); in once_cell_with_value()
|
D | race_once_box.rs | 149 let cell = OnceBox::with_value(Box::new(92)); in onece_box_with_value()
|
/external/rust/android-crates-io/crates/once_cell/ |
D | CHANGELOG.md | 10 - Add `OnceBox::clone` and `OnceBox::with_value`: [#275](https://github.com/matklad/once_cell/pull/… 82 - Add `OnceCell::with_value` to create initialized `OnceCell` in `const` context.
|
/external/rust/android-crates-io/crates/itertools/tests/ |
D | laziness.rs | 272 let _ = itertools::put_back(Panicking).with_value(15);
|