Searched refs:AsBytes (Results 1 – 10 of 10) sorted by relevance
93 pub trait AsBytes { trait98 impl<'a> AsBytes for &'a str { impl101 <str as AsBytes>::as_bytes(self) in as_bytes()105 impl AsBytes for str {112 impl<'a> AsBytes for &'a [u8] { impl119 impl AsBytes for [u8] { impl129 impl<'a> AsBytes for &'a [u8; $N] { impl136 impl AsBytes for [u8; $N] { impl714 self.compare(AsBytes::as_bytes(t)) in compare()718 self.compare_no_case(AsBytes::as_bytes(t)) in compare_no_case()[all …]
165 const void* AsBytes() const { in AsBytes() function
830 T: crate::traits::AsBytes + InputLength + Slice<RangeFrom<usize>>, in float()903 T: crate::traits::AsBytes + InputLength + Slice<RangeFrom<usize>>, in double()
833 T: crate::traits::AsBytes + InputLength + Slice<RangeFrom<usize>>, in float()900 T: crate::traits::AsBytes + InputLength + Slice<RangeFrom<usize>>, in double()
485 fn as_bytes<T: $crate::AsBytes>(b: &T) -> &[u8] {
738 fn as_bytes<T: $crate::AsBytes>(b: &T) -> &[u8] {
547 fn as_bytes<T: $crate::AsBytes>(b: &T) -> &[u8] {
908 - `AsBytes` is implemented for fixed size arrays. This allows `tag!([41u8, 42u8])`1052 - Ryman for the AsBytes implementation1057 - the AsBytes trait improves readability, no more b"...", but "..." instead
1023 TEST(SpanTest, AsBytes) { in TEST() argument
1248 TEST(SpanTest, AsBytes) {