Lines Matching refs:Ok
302 /// # Ok::<(), std::alloc::AllocError>(())
328 /// # Ok::<(), std::alloc::AllocError>(())
352 /// # Ok::<(), std::alloc::AllocError>(())
406 /// # Ok::<(), std::alloc::AllocError>(())
417 Ok(boxed.assume_init())
453 Ok(m) => m,
478 /// # Ok::<(), std::alloc::AllocError>(())
492 unsafe { Ok(Box::from_raw_in(ptr.as_ptr(), alloc)) }
527 Ok(m) => m,
550 /// # Ok::<(), std::alloc::AllocError>(())
566 unsafe { Ok(Box::from_raw_in(ptr.as_ptr(), alloc)) }
685 /// # Ok::<(), std::alloc::AllocError>(())
694 Ok(l) => l,
699 unsafe { Ok(RawVec::from_raw_parts_in(ptr.as_ptr(), len, Global).into_box(len)) }
717 /// # Ok::<(), std::alloc::AllocError>(())
728 Ok(l) => l,
733 unsafe { Ok(RawVec::from_raw_parts_in(ptr.as_ptr(), len, Global).into_box(len)) }
1002 /// # Ok::<(), std::alloc::AllocError>(())
1680 Ok(unsafe { boxed_slice_as_array_unchecked(boxed_slice) })
1713 Ok(unsafe { boxed_slice_as_array_unchecked(boxed_slice) })
1729 /// if let Ok(string) = value.downcast::<String>() {
1741 if self.is::<T>() { unsafe { Ok(self.downcast_unchecked::<T>()) } } else { Err(self) }
1788 /// if let Ok(string) = value.downcast::<String>() {
1800 if self.is::<T>() { unsafe { Ok(self.downcast_unchecked::<T>()) } } else { Err(self) }
1847 /// if let Ok(string) = value.downcast::<String>() {
1859 if self.is::<T>() { unsafe { Ok(self.downcast_unchecked::<T>()) } } else { Err(self) }
2173 Ok(Box::from_raw(raw as *mut T))