Struct bytes::SmallByteStr
[−]
[src]
pub struct SmallByteStr { // some fields omitted }
pub struct SmallByteStr { // some fields omitted }
impl SmallByteStr
fn zero() -> SmallByteStr
fn from_slice(bytes: &[u8]) -> Option<SmallByteStr>
fn as_slice(&self) -> &[u8]
impl ByteStr for SmallByteStr
type Buf = SmallByteStrBuf
fn buf(&self) -> SmallByteStrBuf
fn concat<B: ByteStr + 'static>(&self, other: &B) -> Bytes
fn len(&self) -> usize
fn slice(&self, begin: usize, end: usize) -> Bytes
fn is_empty(&self) -> bool
fn slice_from(&self, begin: usize) -> Bytes
fn slice_to(&self, end: usize) -> Bytes
fn split_at(&self, mid: usize) -> (Bytes, Bytes)
impl ToBytes for SmallByteStr
impl Index<usize> for SmallByteStr
impl<B: ByteStr> PartialEq<B> for SmallByteStr
impl Copy for SmallByteStr
impl Clone for SmallByteStr
fn clone(&self) -> SmallByteStr
fn clone_from(&mut self, source: &Self)