Struct rusttype::Bytes
[−]
[src]
pub struct Bytes<'a>(pub Cow<'a, [u8]>);
A newtype wrapper for Cow<[u8]>
that can be targetted by From
and Into
. This is intended
to be used for providing convenient APIs that can accept Vec<u8>
s or &[u8]
s or other types
that can be read as [u8]
s (feel free to provide your own From
implementations).