[][src]Trait vec_utils::BoxExt

pub trait BoxExt: Sized {
    type T: ?Sized;
    fn drop_box(bx: Self) -> UninitBox;
fn take_box(bx: Self) -> (UninitBox, Self::T)
    where
        Self::T: Sized
; }

Extension methods for Box<T>

Associated Types

type T: ?Sized

The type that the Box<T> stores

Loading content...

Required methods

fn drop_box(bx: Self) -> UninitBox

drops the value inside the box and returns the allocation in the form of an UninitBox

fn take_box(bx: Self) -> (UninitBox, Self::T) where
    Self::T: Sized

takes the value inside the box and returns it as well as the allocation in the form of an UninitBox

Loading content...

Implementations on Foreign Types

impl<T: ?Sized> BoxExt for Box<T>[src]

type T = T

Loading content...

Implementors

Loading content...