[][src]Trait unix::mem::MapExt

pub trait MapExt {
    type MapSpec;
    pub fn map(&self, perm: Perm, seg: Self::MapSpec) -> Result<Map, Error>;
pub unsafe fn map_at(
        &self,
        loc: *mut u8,
        perm: Perm,
        seg: Self::MapSpec
    ) -> Result<Map, Error>; }

Values which can be mapped into memory

Associated Types

type MapSpec[src]

Specifier of which part of value to map

Loading content...

Required methods

pub fn map(&self, perm: Perm, seg: Self::MapSpec) -> Result<Map, Error>[src]

Map the value into memory at an unspecified location.

pub unsafe fn map_at(
    &self,
    loc: *mut u8,
    perm: Perm,
    seg: Self::MapSpec
) -> Result<Map, Error>
[src]

Map the value into memory at the given location.

Loading content...

Implementors

impl MapExt for ()[src]

type MapSpec = usize

impl MapExt for File[src]

type MapSpec = Option<Segment>

Loading content...