Trait dst_init::BoxExt

source ·
pub trait BoxExt: Sized {
    type Output: ?Sized;

    // Required method
    fn emplace<Init: EmplaceInitializer<Output = Self::Output>>(
        init: Init
    ) -> Self;
}

Required Associated Types§

Required Methods§

source

fn emplace<Init: EmplaceInitializer<Output = Self::Output>>(init: Init) -> Self

Implementations on Foreign Types§

source§

impl<T: ?Sized> BoxExt for Arc<T>

§

type Output = T

source§

fn emplace<Init: EmplaceInitializer<Output = Self::Output>>( init: Init ) -> Arc<Self::Output>

source§

impl<T: ?Sized> BoxExt for Rc<T>

§

type Output = T

source§

fn emplace<Init: EmplaceInitializer<Output = Self::Output>>( init: Init ) -> Rc<Self::Output>

source§

impl<T: ?Sized> BoxExt for Box<T>

§

type Output = T

source§

fn emplace<Init: EmplaceInitializer<Output = Self::Output>>( init: Init ) -> Box<Self::Output>

Implementors§