Searched refs:downcast_mut (Results 1 – 10 of 10) sorted by relevance
57 *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()
287 …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>() {
546 .downcast_mut::<Option<Receiver<T>>>() in channel_through_channel()
525 .downcast_mut::<Option<Receiver<T>>>() in channel_through_channel()
646 .downcast_mut::<Option<Receiver<T>>>() in channel_through_channel()
710 .downcast_mut::<Option<Receiver<T>>>() in channel_through_channel()
714 .downcast_mut::<Option<Receiver<T>>>() in channel_through_channel()
986 .downcast_mut::<Option<Receiver<T>>>() in channel_through_channel()
640 Some(v) => v.downcast_mut::<AppData>().unwrap().0, in quiche_conn_stream_application_data()
491 pub fn downcast_mut<E>(&mut self) -> Option<&mut E> in downcast_mut() method