#[repr(C, packed)]
pub struct MemoryEntry { /* private fields */ }
Expand description

Multiboot format of the MMAP buffer.

Note that size is defined to be at -4 bytes in multiboot.

Implementations

Create a new entry from the given data.

Note that this will always create a struct that has a size of 20 bytes.

Get base of memory region.

Get size of the memory region.

Is the region type valid RAM?

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Get the “default” memory entry. (It’s 0 bytes and reserved.)

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.