Struct std::boxed::BoxUnstable [-]  [+] [src]

pub struct Box<T>(_);

A type that represents a uniquely-owned value.

Trait Implementations

impl FromError<IoError> for Box<Error>

fn from_error(err: IoError) -> Box<Error>

impl<'a> Reader for Box<Reader + 'a>

fn read(&mut self, buf: &mut [u8]) -> IoResult<uint>

fn read_at_least(&mut self, min: uint, buf: &mut [u8]) -> IoResult<uint>

fn read_byte(&mut self) -> IoResult<u8>

fn push(&mut self, len: uint, buf: &mut Vec<u8>) -> IoResult<uint>

fn push_at_least(&mut self, min: uint, len: uint, buf: &mut Vec<u8>) -> IoResult<uint>

fn read_exact(&mut self, len: uint) -> IoResult<Vec<u8>>

fn read_to_end(&mut self) -> IoResult<Vec<u8>>

fn read_to_string(&mut self) -> IoResult<String>

fn read_le_uint_n(&mut self, nbytes: uint) -> IoResult<u64>

fn read_le_int_n(&mut self, nbytes: uint) -> IoResult<i64>

fn read_be_uint_n(&mut self, nbytes: uint) -> IoResult<u64>

fn read_be_int_n(&mut self, nbytes: uint) -> IoResult<i64>

fn read_le_uint(&mut self) -> IoResult<uint>

fn read_le_int(&mut self) -> IoResult<int>

fn read_be_uint(&mut self) -> IoResult<uint>

fn read_be_int(&mut self) -> IoResult<int>

fn read_be_u64(&mut self) -> IoResult<u64>

fn read_be_u32(&mut self) -> IoResult<u32>

fn read_be_u16(&mut self) -> IoResult<u16>

fn read_be_i64(&mut self) -> IoResult<i64>

fn read_be_i32(&mut self) -> IoResult<i32>

fn read_be_i16(&mut self) -> IoResult<i16>

fn read_be_f64(&mut self) -> IoResult<f64>

fn read_be_f32(&mut self) -> IoResult<f32>

fn read_le_u64(&mut self) -> IoResult<u64>

fn read_le_u32(&mut self) -> IoResult<u32>

fn read_le_u16(&mut self) -> IoResult<u16>

fn read_le_i64(&mut self) -> IoResult<i64>

fn read_le_i32(&mut self) -> IoResult<i32>

fn read_le_i16(&mut self) -> IoResult<i16>

fn read_le_f64(&mut self) -> IoResult<f64>

fn read_le_f32(&mut self) -> IoResult<f32>

fn read_u8(&mut self) -> IoResult<u8>

fn read_i8(&mut self) -> IoResult<i8>

impl<'a> Writer for Box<Writer + 'a>

fn write(&mut self, buf: &[u8]) -> IoResult<()>

fn flush(&mut self) -> IoResult<()>

fn write_fmt(&mut self, fmt: Arguments) -> IoResult<()>

fn write_str(&mut self, s: &str) -> IoResult<()>

fn write_line(&mut self, s: &str) -> IoResult<()>

fn write_char(&mut self, c: char) -> IoResult<()>

fn write_int(&mut self, n: int) -> IoResult<()>

fn write_uint(&mut self, n: uint) -> IoResult<()>

fn write_le_uint(&mut self, n: uint) -> IoResult<()>

fn write_le_int(&mut self, n: int) -> IoResult<()>

fn write_be_uint(&mut self, n: uint) -> IoResult<()>

fn write_be_int(&mut self, n: int) -> IoResult<()>

fn write_be_u64(&mut self, n: u64) -> IoResult<()>

fn write_be_u32(&mut self, n: u32) -> IoResult<()>

fn write_be_u16(&mut self, n: u16) -> IoResult<()>

fn write_be_i64(&mut self, n: i64) -> IoResult<()>

fn write_be_i32(&mut self, n: i32) -> IoResult<()>

fn write_be_i16(&mut self, n: i16) -> IoResult<()>

fn write_be_f64(&mut self, f: f64) -> IoResult<()>

fn write_be_f32(&mut self, f: f32) -> IoResult<()>

fn write_le_u64(&mut self, n: u64) -> IoResult<()>

fn write_le_u32(&mut self, n: u32) -> IoResult<()>

fn write_le_u16(&mut self, n: u16) -> IoResult<()>

fn write_le_i64(&mut self, n: i64) -> IoResult<()>

fn write_le_i32(&mut self, n: i32) -> IoResult<()>

fn write_le_i16(&mut self, n: i16) -> IoResult<()>

fn write_le_f64(&mut self, f: f64) -> IoResult<()>

fn write_le_f32(&mut self, f: f32) -> IoResult<()>

fn write_u8(&mut self, n: u8) -> IoResult<()>

fn write_i8(&mut self, n: i8) -> IoResult<()>

impl FromError<MapError> for Box<Error>

fn from_error(err: MapError) -> Box<Error>

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

fn into_vec(self) -> Vec<T>

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

fn default() -> Box<T>

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

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

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

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<T>> PartialEq<Box<T>> for Box<T>

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

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

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

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

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> 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<S: Writer, T: Hash<S>> Hash<S> for Box<T>

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

impl BoxAny for Box<Any + 'static>

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

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

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<T> for Box<T>

fn deref(&self) -> &T

impl<T> DerefMut<T> for Box<T>

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