Struct alloc::owned::Box[src]

pub struct Box<T>(_);

A type that represents a uniquely-owned value.

Trait Implementations

impl<T: Default> Default for Box<T>

fn default() -> Box<T>

impl<T: Clone> Clone for Box<T>

fn clone(&self) -> Box<T>

Return a copy of the owned box.

fn clone_from(&mut self, source: &Box<T>)

Perform copy-assignment from source by reusing the existing allocation.

impl<T: PartialEq> PartialEq for Box<T>

fn eq(&self, other: &Box<T>) -> bool

fn ne(&self, other: &Box<T>) -> bool

impl<T: PartialOrd> PartialOrd for Box<T>

fn lt(&self, other: &Box<T>) -> bool

fn le(&self, other: &Box<T>) -> bool

fn ge(&self, other: &Box<T>) -> bool

fn gt(&self, other: &Box<T>) -> bool

impl<T: Ord> Ord for Box<T>

fn cmp(&self, other: &Box<T>) -> Ordering

impl<T: Eq> Eq for Box<T>

fn assert_receiver_is_total_eq(&self)

impl AnyOwnExt for Box<Any>

fn move<T: 'static>(self) -> Result<Box<T>, Box<Any>>

impl<T: Show> Show for Box<T>

fn fmt(&self, f: &mut Formatter) -> Result

impl Show for Box<Any>

fn fmt(&self, f: &mut Formatter) -> Result