Struct bytes::MutSliceBuf [] [src]

pub struct MutSliceBuf<'a> {
    // some fields omitted
}

Methods

impl<'a> MutSliceBuf<'a>

fn wrap(bytes: &'a mut [u8]) -> MutSliceBuf<'a>

Trait Implementations

impl<'a> MutBuf for MutSliceBuf<'a>

fn remaining(&self) -> usize

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

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

fn has_remaining(&self) -> bool

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

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