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]>
impl<T: Default> Default for Box<T>
impl<T> Default for 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.