Trait Unbox

Source
pub trait Unbox {
    type Target;

    // Required method
    fn unbox(self) -> Self::Target;
}
Expand description

Trait specifying unboxing capability of a pointer type.

Required Associated Types§

Required Methods§

Source

fn unbox(self) -> Self::Target

Implementations on Foreign Types§

Source§

impl<T> Unbox for Box<T>
where T: Sized,

Source§

type Target = T

Source§

fn unbox(self) -> T

Source§

impl<T> Unbox for Rc<T>
where T: Clone,

Source§

type Target = T

Source§

fn unbox(self) -> T

Source§

impl<T> Unbox for Arc<T>
where T: Clone,

Source§

type Target = T

Source§

fn unbox(self) -> T

Implementors§