[][src]Struct polymorph_allocator::region::Region

pub struct Region {
    pub size: usize,
    pub data: usize,
    pub padding_start: usize,
    pub padding_end: usize,
    pub flags: RegionFlags,
    pub next: usize,
}

Fields

size: usizedata: usizepadding_start: usizepadding_end: usizeflags: RegionFlagsnext: usize

Methods

impl Region[src]

pub fn new(addr: usize, size: usize) -> Region[src]

pub fn new_with_padding(
    addr: usize,
    size: usize,
    padding_start: usize,
    padding_end: usize
) -> Region
[src]

pub fn min_size() -> usize[src]

pub fn next(&self) -> Option<&mut Region>[src]

pub fn get_used(&self) -> bool[src]

pub fn set_used(&mut self, used: bool)[src]

pub fn size(&self) -> usize[src]

pub unsafe fn data_ptr(&self) -> *mut u8[src]

Trait Implementations

impl Debug for Region[src]

Auto Trait Implementations

impl Unpin for Region

impl Send for Region

impl Sync for Region

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]