We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f961497 commit 1e6eb6cCopy full SHA for 1e6eb6c
src/context.rs
@@ -320,6 +320,11 @@ unsafe impl<'buf> Context for AllPreallocated<'buf> {
320
321
/// Trait marking that a particular context object internally points to
322
/// memory that must outlive `'a`
323
+///
324
+/// # Safety
325
+/// This trait is used internally to gate which context markers can safely
326
+/// be used with the `preallocated_gen_new` function. Do not implement it
327
+/// on your own structures.
328
pub unsafe trait PreallocatedContext<'a> {}
329
330
unsafe impl<'buf> PreallocatedContext<'buf> for AllPreallocated<'buf> {}
0 commit comments