ialloc 0.0.0-2025-05-02

Allocator interface traits
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::fat::*;
use crate::vec::AVec;

use core::fmt::{self, Debug, Formatter};



impl<T: Debug, A: Free + Debug> Debug for AVec<T, A> {
    fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
        f.debug_struct("AVec")
            .field("allocator", self.allocator())
            .field("capacity", &self.capacity())
            .field("data", &self.as_slice())
        .finish()
    }
}