Struct bytes::buf::MutSliceBuf [] [src]

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

Methods

impl<'a> MutSliceBuf<'a>
[src]

Trait Implementations

impl<'a> MutBuf for MutSliceBuf<'a>
[src]

Returns the number of bytes that can be written to the MutBuf

Advance the internal cursor of the MutBuf

Returns a mutable slice starting at the current MutBuf position and of length between 0 and MutBuf::remaining(). Read more

Returns true iff there is any more space for bytes to be written

Write bytes from the given slice into the MutBuf and advance the cursor by the number of bytes written. Returns the number of bytes written. Read more

Write a single byte to the MuBuf