#[repr(C)]
pub struct LargeObjectPage<'a> { /* private fields */ }
Expand description

Holds allocated data within a 2 MiB page.

Has a data-section where objects are allocated from and a small amount of meta-data in form of a bitmap to track allocations at the end of the page.

Notes

An object of this type will be exactly 2 MiB. It is marked repr(C) because we rely on a well defined order of struct members (e.g., dealloc does a cast to find the bitfield).

Trait Implementations

The total size (in bytes) of the page. Read more

Tries to find a free block within data that satisfies alignment requirement.

Tries to allocate an object within this page. Read more

Checks if we can still allocate more objects of a given layout within the page.

Checks if the page has currently no allocations.

Deallocates a memory object within this page.

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.