Lines Matching refs:ByteStr
6 pub(crate) struct ByteStr { struct
11 impl ByteStr { implementation
13 pub fn new() -> ByteStr { in new()
14 ByteStr { in new()
21 pub const fn from_static(val: &'static str) -> ByteStr { in from_static() argument
22 ByteStr { in from_static()
35 pub unsafe fn from_utf8_unchecked(bytes: Bytes) -> ByteStr { in from_utf8_unchecked() argument
46 ByteStr { bytes: bytes } in from_utf8_unchecked()
50 impl ops::Deref for ByteStr { implementation
61 impl From<String> for ByteStr { implementation
63 fn from(src: String) -> ByteStr { in from() argument
64 ByteStr { in from()
71 impl<'a> From<&'a str> for ByteStr { implementation
73 fn from(src: &'a str) -> ByteStr { in from() argument
74 ByteStr { in from()
81 impl From<ByteStr> for Bytes {
82 fn from(src: ByteStr) -> Self { in from()