Lines Matching defs:Bytes
94 pub struct Bytes { struct
104 pub clone: unsafe fn(&AtomicPtr<()>, *const u8, usize) -> Bytes, argument
109 impl Bytes { implementation
152 pub const fn from_static(bytes: &'static [u8]) -> Bytes { in from_static()
162 pub fn from_static(bytes: &'static [u8]) -> Bytes { in from_static()
228 pub fn slice(&self, range: impl RangeBounds<usize>) -> Bytes { in slice()
295 pub fn slice_ref(&self, subset: &[u8]) -> Bytes { in slice_ref()
352 pub fn split_off(&mut self, at: usize) -> Bytes { in split_off()
401 pub fn split_to(&mut self, at: usize) -> Bytes { in split_to()
483 ) -> Bytes { in with_vtable()
509 unsafe impl Send for Bytes {} implementation
510 unsafe impl Sync for Bytes {} implementation
512 impl Drop for Bytes { implementation
519 impl Clone for Bytes { implementation
521 fn clone(&self) -> Bytes { in clone()
526 impl Buf for Bytes { implementation
551 fn copy_to_bytes(&mut self, len: usize) -> crate::Bytes { in copy_to_bytes()
562 impl Deref for Bytes { implementation
571 impl AsRef<[u8]> for Bytes { implementation
578 impl hash::Hash for Bytes { implementation
587 impl Borrow<[u8]> for Bytes { implementation
593 impl IntoIterator for Bytes { implementation
602 impl<'a> IntoIterator for &'a Bytes { implementation
611 impl FromIterator<u8> for Bytes { implementation
619 impl PartialEq for Bytes { implementation
625 impl PartialOrd for Bytes { implementation
631 impl Ord for Bytes { implementation
637 impl Eq for Bytes {} implementation
639 impl PartialEq<[u8]> for Bytes { implementation
645 impl PartialOrd<[u8]> for Bytes { implementation
663 impl PartialEq<str> for Bytes { implementation
669 impl PartialOrd<str> for Bytes { implementation
687 impl PartialEq<Vec<u8>> for Bytes { implementation
693 impl PartialOrd<Vec<u8>> for Bytes { implementation
711 impl PartialEq<String> for Bytes { implementation
717 impl PartialOrd<String> for Bytes { implementation
759 impl<'a, T: ?Sized> PartialEq<&'a T> for Bytes implementation
768 impl<'a, T: ?Sized> PartialOrd<&'a T> for Bytes implementation
779 impl Default for Bytes { implementation
786 impl From<&'static [u8]> for Bytes { implementation
787 fn from(slice: &'static [u8]) -> Bytes { in from()
792 impl From<&'static str> for Bytes { implementation
793 fn from(slice: &'static str) -> Bytes { in from()
798 impl From<Vec<u8>> for Bytes { implementation
799 fn from(vec: Vec<u8>) -> Bytes { in from()
830 impl From<String> for Bytes { implementation
831 fn from(s: String) -> Bytes { in from()
854 unsafe fn static_clone(_: &AtomicPtr<()>, ptr: *const u8, len: usize) -> Bytes { in static_clone()
875 unsafe fn promotable_even_clone(data: &AtomicPtr<()>, ptr: *const u8, len: usize) -> Bytes { in promotable_even_clone()
903 unsafe fn promotable_odd_clone(data: &AtomicPtr<()>, ptr: *const u8, len: usize) -> Bytes { in promotable_odd_clone()
958 unsafe fn shared_clone(data: &AtomicPtr<()>, ptr: *const u8, len: usize) -> Bytes { in shared_clone()
969 unsafe fn shallow_clone_arc(shared: *mut Shared, ptr: *const u8, len: usize) -> Bytes { in shallow_clone_arc()
991 ) -> Bytes { in shallow_clone_vec()