Struct bytes::MutByteBuf [] [src]

pub struct MutByteBuf {
    // some fields omitted
}

Methods

impl MutByteBuf

fn capacity(&self) -> usize

fn flip(self) -> ByteBuf

fn clear(&mut self)

fn write_slice(&mut self, src: &[u8]) -> usize

fn bytes<'a>(&'a self) -> &'a [u8]

Trait Implementations

impl MutBuf for MutByteBuf

fn remaining(&self) -> usize

unsafe fn advance(&mut self, cnt: usize)

unsafe fn mut_bytes<'a>(&'a mut self) -> &'a mut [u8]

fn has_remaining(&self) -> bool

fn write_slice(&mut self, src: &[u8]) -> usize

fn write_byte(&mut self, byte: u8) -> bool

impl Debug for MutByteBuf

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

impl Write for MutByteBuf

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

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

1.0.0fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>

1.0.0fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>

1.0.0fn by_ref(&mut self) -> &mut Self