Trait bytes::str::ToBytes
[−]
[src]
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
Implementors
impl ToBytes for Bytes
impl ToBytes for Rope
impl ToBytes for SeqByteStr
impl ToBytes for SmallByteStr
impl<'a> ToBytes for &'a [u8]
impl<'a> ToBytes for &'a Vec<u8>