[][src]Trait bytes::str::ToBytes

pub trait ToBytes {
    fn to_bytes(self) -> Bytes;
}

Required methods

fn to_bytes(self) -> Bytes

Consumes the value and returns a Bytes instance containing identical bytes

Loading content...

Implementations on Foreign Types

impl<'a> ToBytes for &'a [u8][src]

impl<'a> ToBytes for &'a Vec<u8>[src]

Loading content...

Implementors

impl ToBytes for Bytes[src]

impl ToBytes for Rope[src]

impl ToBytes for SeqByteStr[src]

impl ToBytes for SmallByteStr[src]

Loading content...