We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf6dab3 commit 9cb14a6Copy full SHA for 9cb14a6
src/lib.rs
@@ -32,6 +32,10 @@ mod validation;
32
/// Get a heap-allocated raw pointer without ownership.
33
///
34
/// To back to manage the memory with ownership use [`own_back<T>()`].
35
+///
36
+/// # Errors
37
38
+/// If the allocator reports a failure, then an error is returned.
39
#[cfg(any(feature = "alloc", feature = "std"))]
40
#[inline]
41
pub fn raw<T>(data: T) -> Result<*mut T, PointerError> {
0 commit comments