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 Bytesimpl ToBytes for Ropeimpl ToBytes for SeqByteStrimpl ToBytes for SmallByteStrimpl<'a> ToBytes for &'a [u8]impl<'a> ToBytes for &'a Vec<u8>