Home
last modified time | relevance | path

Searched refs:downcast_mut (Results 1 – 10 of 10) sorted by relevance

/external/rust/crates/anyhow/tests/
Dtest_downcast.rs57 *bail_literal().unwrap_err().downcast_mut::<&str>().unwrap(), in test_downcast_mut()
61 bail_fmt().unwrap_err().downcast_mut::<String>().unwrap(), in test_downcast_mut()
67 .downcast_mut::<io::Error>() in test_downcast_mut()
73 *bailed.downcast_mut::<String>().unwrap() = "clobber".to_string(); in test_downcast_mut()
75 assert_eq!(bailed.downcast_mut::<String>().unwrap(), "clobber"); in test_downcast_mut()
112 assert!(error.downcast_mut::<&str>().is_none()); in test_unsuccessful_downcast()
/external/rust/crates/downcast-rs/src/
Dlib.rs287 …pub fn downcast_mut<__T: $trait_<$($types)*>>(&mut self) -> $crate::__std::option::Option<&mut __T…
288 $crate::Downcast::as_any_mut(self).downcast_mut::<__T>()
524 if let Some(foo) = base.downcast_mut::<Foo>() {
/external/rust/crates/crossbeam-channel/tests/
Dzero.rs546 .downcast_mut::<Option<Receiver<T>>>() in channel_through_channel()
Dlist.rs525 .downcast_mut::<Option<Receiver<T>>>() in channel_through_channel()
Darray.rs646 .downcast_mut::<Option<Receiver<T>>>() in channel_through_channel()
Dready.rs710 .downcast_mut::<Option<Receiver<T>>>() in channel_through_channel()
Dselect_macro.rs714 .downcast_mut::<Option<Receiver<T>>>() in channel_through_channel()
Dselect.rs986 .downcast_mut::<Option<Receiver<T>>>() in channel_through_channel()
/external/rust/crates/quiche/src/
Dffi.rs640 Some(v) => v.downcast_mut::<AppData>().unwrap().0, in quiche_conn_stream_application_data()
/external/rust/crates/anyhow/src/
Derror.rs491 pub fn downcast_mut<E>(&mut self) -> Option<&mut E> in downcast_mut() method