Lines Matching defs:from_bytes
52 pub const fn from_bytes(bytes: &[u8]) -> &Self {
71 .map(Self::from_bytes)
163 BStr::from_bytes(&self.0[index])
169 BStr::from_bytes(self)
195 const C: &'static $crate::str::BStr = $crate::str::BStr::from_bytes(S.as_bytes());
391 BStr::from_bytes(self.to_bytes())
516 let hello_world = BStr::from_bytes(b"hello, world!");
518 let escapes = BStr::from_bytes(b"_\t_\n_\r_\\_\'_\"_");
520 let others = BStr::from_bytes(b"\x01");
522 let non_ascii = BStr::from_bytes(b"d\xe9j\xe0 vu");
524 let good_bytes = BStr::from_bytes(b"\xf0\x9f\xa6\x80");
531 let hello_world = BStr::from_bytes(b"hello, world!");
533 let escapes = BStr::from_bytes(b"_\t_\n_\r_\\_\'_\"_");
535 let others = BStr::from_bytes(b"\x01");
537 let non_ascii = BStr::from_bytes(b"d\xe9j\xe0 vu");
539 let good_bytes = BStr::from_bytes(b"\xf0\x9f\xa6\x80");