pub trait BuddyLine {
    const EMPTY: Self;
    const INTRUSIVE_META_SIZE: usize = 0usize;

    fn init(&mut self, _order: usize, _base: usize) { ... }
    fn take(&mut self, _idx: usize) -> bool { ... }
}
Expand description

伙伴分配器的一个行。

Required Associated Constants

空集合。用于静态初始化。

Provided Associated Constants

侵入式元数据的大小。

Provided Methods

伙伴分配器可能需要集合知道自己的阶数和基序号。

提取指定位置的元素,返回是否提取到。

Implementors