#[repr(C)]
pub struct Map { pub offset: usize, pub size: usize, pub flags: MapFlags, pub address: usize, }

Fields

offset: usize

The offset inside the file that is being mapped.

size: usize

The size of the memory map.

flags: MapFlags

Contains both prot and map flags.

address: usize

Functions as a hint to where in the virtual address space of the running process, to place the memory map. If MapFlags::MAP_FIXED is set, then this address must be the address to map to.

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

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

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

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.