Struct bytes::str::SmallByteStrBuf
[−]
[src]
pub struct SmallByteStrBuf { /* fields omitted */ }
Trait Implementations
impl Clone for SmallByteStrBuf
[src]
fn clone(&self) -> SmallByteStrBuf
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Buf for SmallByteStrBuf
[src]
fn remaining(&self) -> usize
Returns the number of bytes that can be accessed from the Buf
fn bytes(&self) -> &[u8]
Returns a slice starting at the current Buf position and of length between 0 and Buf::remaining()
. Read more
fn advance(&mut self, cnt: usize)
Advance the internal cursor of the Buf
fn has_remaining(&self) -> bool
Returns true if there are any more bytes to consume
fn read_slice(&mut self, dst: &mut [u8]) -> usize
Read bytes from the Buf
into the given slice and advance the cursor by the number of bytes read. Returns the number of bytes read. Read more
fn read_byte(&mut self) -> Option<u8>
Read a single byte from the Buf