Lines Matching refs:as_bytes
7 PartialEq::eq(self.as_bytes(), other)
15 PartialEq::eq(this, other.as_bytes())
28 PartialEq::eq(self.as_bytes(), other)
36 PartialEq::eq(this, self.as_bytes())
48 PartialOrd::partial_cmp(self.as_bytes(), other)
56 PartialOrd::partial_cmp(this, other.as_bytes())
178 BString::from(s.as_bytes().to_vec()) in from()
384 let bytes = self[s..e].as_bytes(); in fmt()
388 for &b in self[s..e].as_bytes() { in fmt()
432 &self.as_bytes()[idx] in index()
450 BStr::new(&self.as_bytes()[r.start..r.end]) in index()
459 BStr::new(&self.as_bytes()[*r.start()..=*r.end()]) in index()
468 BStr::new(&self.as_bytes()[r.start..]) in index()
477 BStr::new(&self.as_bytes()[..r.end]) in index()
486 BStr::new(&self.as_bytes()[..=r.end]) in index()
542 self.as_bytes() in as_ref()
596 BStr::from_bytes(s.as_bytes()) in from()
629 self.as_bytes() == other.as_bytes() in eq()
656 PartialOrd::partial_cmp(self.as_bytes(), other.as_bytes()) in partial_cmp()
699 serializer.serialize_bytes(self.as_bytes()) in serialize()
758 serializer.serialize_bytes(self.as_bytes()) in serialize()