Searched refs:downcast (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-6.6/rust/kernel/sync/arc/ |
H A D | std_vendor.rs | 12 /// Attempt to downcast the `Arc<dyn Any + Send + Sync>` to a concrete type. 13 pub fn downcast<T>(self) -> core::result::Result<Arc<T>, Self> in downcast() functions
|
/kernel/linux/linux-6.6/rust/alloc/ |
H A D | boxed.rs | 1721 /// Attempt to downcast the box to a concrete type. 1729 /// if let Ok(string) = value.downcast::<String>() { 1740 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast() functions 1746 /// For a safe alternative see [`downcast`]. 1767 /// [`downcast`]: Self::downcast 1780 /// Attempt to downcast the box to a concrete type. 1788 /// if let Ok(string) = value.downcast::<String>() { 1799 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast() functions 1805 /// For a safe alternative see [`downcast`] 1858 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { downcast() functions 2169 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<dyn Error>> { downcast() functions 2186 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<dyn Error + Send>> { downcast() functions 2200 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<Self>> { downcast() functions [all...] |
Completed in 3 milliseconds