oxilean_kernel/arena/growablearena_traits.rs
1//! # GrowableArena - Trait Implementations
2//!
3//! This module contains trait implementations for `GrowableArena`.
4//!
5//! ## Implemented Traits
6//!
7//! - `ArenaAllocator`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::functions::ArenaAllocator;
12use super::types::GrowableArena;
13
14impl ArenaAllocator for GrowableArena {
15 fn alloc_raw(&mut self, bytes: usize, align: usize) -> Option<usize> {
16 Some(self.alloc(bytes, align))
17 }
18 fn used_bytes(&self) -> usize {
19 self.used()
20 }
21}