Struct collections::boxed::BoxStable [-]  [+] [src]

pub struct Box<T>(_);

A type that represents a uniquely-owned value.

Methods

impl<T> Box<T>

fn new(x: T) -> Box<T>

Moves x into a freshly allocated box on the global exchange heap.

Trait Implementations

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

fn default() -> Box<T>

impl<T> Default for Box<[T]>

fn default() -> Box<[T]>

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

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

Returns a copy of the owned box.

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

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

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

impl<T> PartialEq<Box<T>> for Box<T> where T: PartialEq<T>, T: ?Sized

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

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

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

impl<T> PartialOrd<Box<T>> for Box<T> where T: PartialOrd<T>, T: ?Sized

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

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

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

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

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

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

impl<T> Ord for Box<T> where T: Ord, T: ?Sized

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

impl<T> Eq for Box<T> where T: Eq, T: ?Sized

fn assert_receiver_is_total_eq(&self)

impl<S, T> Hash<S> for Box<T> where S: Hasher, T: Hash<S>, T: ?Sized

fn hash(&self, state: &mut S)

impl BoxAny for Box<Any + 'static>

fn downcast<T>(self) -> Result<Box<T>, Box<Any + 'static>> where T: 'static

impl<T> Show for Box<T> where T: Show, T: ?Sized

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

impl<T> String for Box<T> where T: String, T: ?Sized

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

impl Show for Box<Any + 'static>

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

impl<T> Deref for Box<T> where T: ?Sized

fn deref(&self) -> &T

type Target

impl<T> DerefMut for Box<T> where T: ?Sized

fn deref_mut(&mut self) -> &mut T