/external/libevent/ |
D | bufferevent_pair.c | 66 #define downcast(bev_pair) (&(bev_pair)->bev.bev) macro 75 bufferevent_incref_and_lock_(downcast(bevp->partner)); in incref_and_lock() 83 bufferevent_decref_and_unlock_(downcast(bevp->partner)); in decref_and_unlock() 105 bufferevent_free(downcast(bufev)); in bufferevent_pair_elt_new() 129 bufferevent_free(downcast(bufev1)); in bufferevent_pair_new() 135 bufferevent_enable_locking_(downcast(bufev2), bufev1->bev.lock); in bufferevent_pair_new() 141 evbuffer_freeze(downcast(bufev1)->input, 0); in bufferevent_pair_new() 142 evbuffer_freeze(downcast(bufev1)->output, 1); in bufferevent_pair_new() 143 evbuffer_freeze(downcast(bufev2)->input, 0); in bufferevent_pair_new() 144 evbuffer_freeze(downcast(bufev2)->output, 1); in bufferevent_pair_new() [all …]
|
D | bufferevent_filter.c | 129 #define downcast(bev_f) (&(bev_f)->bev.bev) macro 150 struct bufferevent *bufev = downcast(bevf); in be_readbuf_full() 198 bufferevent_enable_locking_(downcast(bufev_f), NULL); in bufferevent_filter_new() 211 bufev_f->inbuf_cb = evbuffer_add_cb(downcast(bufev_f)->input, in bufferevent_filter_new() 213 evbuffer_cb_clear_flags(downcast(bufev_f)->input, bufev_f->inbuf_cb, in bufferevent_filter_new() 216 bufev_f->outbuf_cb = evbuffer_add_cb(downcast(bufev_f)->output, in bufferevent_filter_new() 219 bufferevent_init_generic_timeout_cbs_(downcast(bufev_f)); in bufferevent_filter_new() 225 return downcast(bufev_f); in bufferevent_filter_new() 307 struct bufferevent *bev = downcast(bevf); in be_filter_process_input() 347 struct bufferevent *bufev = downcast(bevf); in be_filter_process_output() [all …]
|
/external/rust/crates/downcast-rs/ |
D | Android.bp | 28 name: "downcast-rs_defaults", 41 name: "downcast-rs_host_test_src_lib", 42 defaults: ["downcast-rs_defaults"], 49 name: "downcast-rs_device_test_src_lib", 50 defaults: ["downcast-rs_defaults"], 54 name: "downcast-rs_defaults_downcast_rs", 69 name: "downcast-rs_host_test_tests_import_via_macro_use", 70 defaults: ["downcast-rs_defaults_downcast_rs"], 78 name: "downcast-rs_device_test_tests_import_via_macro_use", 79 defaults: ["downcast-rs_defaults_downcast_rs"], [all …]
|
D | README.md | 1 # downcast-rs 3 …mg.shields.io/github/workflow/status/marcianx/downcast-rs/CI/master)](https://github.com/marcianx/… 4 [![Latest version](https://img.shields.io/crates/v/downcast-rs.svg)](https://crates.io/crates/downc… 5 [![Documentation](https://docs.rs/downcast-rs/badge.svg)](https://docs.rs/downcast-rs) 13 `downcast-rs` adds this downcasting support to trait objects using only safe 22 downcast-rs = "1.2.0" 29 downcast-rs = { version = "1.2.0", default-features = false } 32 To make a trait downcastable, make it extend either `downcast::Downcast` or 33 `downcast::DowncastSync` and invoke `impl_downcast!` on it as in the examples 105 let res = base.downcast::<Bar>(); [all …]
|
D | METADATA | 1 name: "downcast-rs" 6 value: "https://crates.io/crates/downcast-rs" 10 value: "https://static.crates.io/crates/downcast-rs/downcast-rs-1.2.0.crate"
|
D | Cargo.toml.orig | 2 name = "downcast-rs" 5 repository = "https://github.com/marcianx/downcast-rs" 11 keywords = ["downcast", "any", "trait", "associated", "no_std"]
|
D | Cargo.toml | 14 name = "downcast-rs" 19 keywords = ["downcast", "any", "trait", "associated", "no_std"] 21 repository = "https://github.com/marcianx/downcast-rs"
|
D | CHANGELOG.md | 14 - Used `dyn Trait` syntax everywhere since it is supported by downcast-rs's 51 - Downcast functionality to downcast borrowed mutable and immutable trait
|
/external/llvm-project/clang/test/Analysis/Checkers/WebKit/ |
D | call-args.cpp | 70 RefCountable* downcast(RefCountable*) { return nullptr; } in downcast() function 88 consume_refcntbl(downcast(provide())); in foo() 93 downcast( in foo() 169 RefCountable* downcast(RefCountable*) { return nullptr; } in downcast() function 175 consume_ref_countable_ptr(downcast(param)); in foo() 209 RefCountable* downcast(RefCountable*) { return nullptr; } in downcast() function 215 consume_ref_countable_ptr(downcast(param)); in foo() 253 RefCountable* downcast(RefCountable*) { return nullptr; } in downcast() function 259 methodclass::consume_ref_countable_ptr(downcast(param)); in foo() 281 namespace downcast { namespace [all …]
|
D | uncounted-local-vars.cpp | 70 { RefCountable *bar = downcast<RefCountable>(foo.get()); } in foo1() 77 static_cast<RefCountable *>(downcast<RefCountable>(foo.get())); in foo2()
|
D | mock-types.h | 46 template <typename T> T *downcast(T *t) { return t; } in downcast() function
|
/external/rust/crates/anyhow/tests/ |
D | test_downcast.rs | 17 bail_literal().unwrap_err().downcast::<&str>().unwrap(), in test_downcast() 21 bail_fmt().unwrap_err().downcast::<String>().unwrap(), in test_downcast() 27 .downcast::<io::Error>() in test_downcast() 76 assert_eq!(bailed.downcast::<String>().unwrap(), "clobber"); in test_downcast_mut() 83 drop(error.downcast::<DetectDrop>().unwrap()); in test_drop() 113 assert!(error.downcast::<&str>().is_err()); in test_unsuccessful_downcast()
|
D | test_context.rs | 118 let err = err.downcast::<HighLevel>().unwrap(); in test_downcast_high() 130 let err = err.downcast::<MidLevel>().unwrap(); in test_downcast_mid() 142 let err = err.downcast::<LowLevel>().unwrap(); in test_downcast_low() 154 let err = err.downcast::<String>().unwrap_err(); in test_unsuccessful_downcast()
|
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/ |
D | cppcoreguidelines-pro-type-static-cast-downcast.rst | 1 .. title:: clang-tidy - cppcoreguidelines-pro-type-static-cast-downcast 3 cppcoreguidelines-pro-type-static-cast-downcast 15 https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Pro-type-downcast.
|
D | hicpp-explicit-conversions.rst | 14 - `cppcoreguidelines-pro-type-static-cast-downcast <cppcoreguidelines-pro-type-static-cast-downcast…
|
D | cppcoreguidelines-pro-type-cstyle-cast.rst | 7 downcast, ``const_cast``, or ``reinterpret_cast``.
|
/external/rust/crates/downcast-rs/src/ |
D | lib.rs | 257 pub fn downcast<__T: $trait_<$($types)*>>( 261 Ok($crate::Downcast::into_any(self).downcast::<__T>().unwrap()) 273 Ok($crate::Downcast::into_any_rc(self).downcast::<__T>().unwrap()) 302 Ok($crate::DowncastSync::into_any_arc(self).downcast::<__T>().unwrap()) 545 let res = base.downcast::<Bar>(); 550 6*9, base.downcast::<Foo>().map_err(|_| "Shouldn't happen.").unwrap().0);
|
/external/llvm-project/clang/test/CodeGenCXX/RelativeVTablesABI/ |
D | dynamic-cast.cpp | 68 B *downcast(A *a) { in downcast() function
|
/external/crosvm/hypervisor/ |
D | Cargo.toml | 10 downcast-rs = "1.2.0"
|
D | Android.bp | 93 // downcast-rs-1.2.0 "default,std"
|
/external/rust/crates/rusqlite/src/types/ |
D | url.rs | 72 *e.downcast::<ParseError>().unwrap(), in test_sql_url()
|
/external/rust/crates/futures/tests/ |
D | arc_wake.rs | 78 …assert_eq!("WAKE UP", *std::panic::catch_unwind(|| w1.wake_by_ref()).unwrap_err().downcast::<&str>… in proper_refcount_on_wake_panic()
|
/external/crosvm/libcrosvm_control/ |
D | Android.bp | 82 // downcast-rs-1.2.0 "default,std"
|
/external/crosvm/vm_control/ |
D | Android.bp | 112 // downcast-rs-1.2.0 "default,std"
|
/external/rust/crates/proc-macro-error/src/ |
D | lib.rs | 463 Err(boxed) => match boxed.downcast::<AbortNow>() { in entry_point()
|