[][src]Struct swim_mem::alloc::HoldScope

pub struct HoldScope<'a> { /* fields omitted */ }

Linked list of Hold references representing a stack of memory allocation contexts.

Methods

impl<'a> HoldScope<'a>[src]

pub fn new(hold: &'a dyn Hold<'a>) -> HoldScope<'a>[src]

Trait Implementations

impl<'a> Hold<'a> for HoldScope<'a>[src]

unsafe fn realloc(
    &self,
    block: Block<'a>,
    layout: Layout
) -> Result<Block<'a>, HoldError>
[src]

Attempts to resize a memory block allocated by this Hold to fit a new layout. Returns Ok with the resized memory block on success; returns a HoldError on failure. Read more

Auto Trait Implementations

impl<'a> !Send for HoldScope<'a>

impl<'a> !Sync for HoldScope<'a>

Blanket Implementations

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto 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, U> Into for T where
    U: From<T>, 
[src]

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

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

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