mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
docs(allocator): document behaviour of Box
This commit is contained in:
parent
a647a47a3c
commit
a1271af5df
1 changed files with 3 additions and 1 deletions
|
|
@ -14,7 +14,9 @@ use serde::{ser::SerializeSeq, Serialize, Serializer};
|
||||||
|
|
||||||
use crate::Allocator;
|
use crate::Allocator;
|
||||||
|
|
||||||
/// Bumpalo Box
|
/// A Box without Drop.
|
||||||
|
/// This is used for over coming self-referential structs.
|
||||||
|
/// It is a memory leak if the boxed value has a `Drop` implementation.
|
||||||
pub struct Box<'alloc, T: ?Sized>(pub &'alloc mut T);
|
pub struct Box<'alloc, T: ?Sized>(pub &'alloc mut T);
|
||||||
|
|
||||||
impl<'alloc, T> Box<'alloc, T> {
|
impl<'alloc, T> Box<'alloc, T> {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue