Slab

Struct Slab 

Source
#[repr(C)]
pub struct Slab<I> { pub hdr: SlabHdr<I>, pub free: [I], }
Expand description

Implementation of uma_slab and uma_slab_refcnt.

We use slightly different mechanism here but has the same memory layout.

§Safety

Adding more fields into this struct without knowing how it work can cause undefined behavior in some places.

Fields§

§hdr: SlabHdr<I>§free: [I]

Implementations§

Source§

impl<I> Slab<I>

Source

pub fn alloc_item(&mut self)

See slab_alloc_item on the Orbis for a reference.

§Reference offsets
VersionOffset
PS4 11.000x141FE0

Auto Trait Implementations§

§

impl<I> Freeze for Slab<I>
where I: Freeze,

§

impl<I> !RefUnwindSafe for Slab<I>

§

impl<I> Send for Slab<I>
where I: Send,

§

impl<I> !Sized for Slab<I>

§

impl<I> Sync for Slab<I>
where I: Sync + Send,

§

impl<I> Unpin for Slab<I>
where I: Unpin,

§

impl<I> !UnwindSafe for Slab<I>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more