mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
19 lines
268 B
Rust
19 lines
268 B
Rust
use std::ops::Deref;
|
|
|
|
mod arena;
|
|
|
|
pub use arena::{Box, String, Vec};
|
|
use bumpalo::Bump;
|
|
|
|
#[derive(Default)]
|
|
pub struct Allocator {
|
|
bump: Bump,
|
|
}
|
|
|
|
impl Deref for Allocator {
|
|
type Target = Bump;
|
|
|
|
fn deref(&self) -> &Self::Target {
|
|
&self.bump
|
|
}
|
|
}
|