Lines Matching refs:BytesMut
60 pub struct BytesMut { struct
117 impl BytesMut { implementation
141 pub fn with_capacity(capacity: usize) -> BytesMut { in with_capacity() argument
142 BytesMut::from_vec(Vec::with_capacity(capacity)) in with_capacity()
165 pub fn new() -> BytesMut { in new()
166 BytesMut::with_capacity(0) in new()
288 pub fn split_off(&mut self, at: usize) -> BytesMut { in split_off() argument
329 pub fn split(&mut self) -> BytesMut { in split() argument
361 pub fn split_to(&mut self, at: usize) -> BytesMut { in split_to() argument
722 pub fn unsplit(&mut self, other: BytesMut) { in unsplit() argument
742 pub(crate) fn from_vec(mut vec: Vec<u8>) -> BytesMut { in from_vec() argument
751 BytesMut { in from_vec()
821 fn try_unsplit(&mut self, other: BytesMut) -> Result<(), BytesMut> { in try_unsplit() argument
886 unsafe fn shallow_clone(&mut self) -> BytesMut { in shallow_clone() argument
923 impl Drop for BytesMut { implementation
940 impl Buf for BytesMut { implementation
969 unsafe impl BufMut for BytesMut { implementation
1015 impl AsRef<[u8]> for BytesMut { implementation
1022 impl Deref for BytesMut { implementation
1031 impl AsMut<[u8]> for BytesMut { implementation
1038 impl DerefMut for BytesMut { implementation
1045 impl<'a> From<&'a [u8]> for BytesMut { implementation
1046 fn from(src: &'a [u8]) -> BytesMut { in from() argument
1047 BytesMut::from_vec(src.to_vec()) in from()
1051 impl<'a> From<&'a str> for BytesMut { implementation
1052 fn from(src: &'a str) -> BytesMut { in from() argument
1053 BytesMut::from(src.as_bytes()) in from()
1057 impl From<BytesMut> for Bytes {
1058 fn from(src: BytesMut) -> Bytes { in from()
1063 impl PartialEq for BytesMut { implementation
1064 fn eq(&self, other: &BytesMut) -> bool { in eq()
1069 impl PartialOrd for BytesMut { implementation
1070 fn partial_cmp(&self, other: &BytesMut) -> Option<cmp::Ordering> { in partial_cmp()
1075 impl Ord for BytesMut { implementation
1076 fn cmp(&self, other: &BytesMut) -> cmp::Ordering { in cmp()
1081 impl Eq for BytesMut {} implementation
1083 impl Default for BytesMut { implementation
1085 fn default() -> BytesMut { in default()
1086 BytesMut::new() in default()
1090 impl hash::Hash for BytesMut { implementation
1100 impl Borrow<[u8]> for BytesMut { implementation
1106 impl BorrowMut<[u8]> for BytesMut { implementation
1112 impl fmt::Write for BytesMut { implementation
1129 impl Clone for BytesMut { implementation
1130 fn clone(&self) -> BytesMut { in clone() argument
1131 BytesMut::from(&self[..]) in clone()
1135 impl IntoIterator for BytesMut { implementation
1137 type IntoIter = IntoIter<BytesMut>;
1144 impl<'a> IntoIterator for &'a BytesMut { implementation
1153 impl Extend<u8> for BytesMut { implementation
1173 impl<'a> Extend<&'a u8> for BytesMut { implementation
1182 impl FromIterator<u8> for BytesMut { implementation
1184 BytesMut::from_vec(Vec::from_iter(into_iter)) in from_iter()
1188 impl<'a> FromIterator<&'a u8> for BytesMut { implementation
1190 BytesMut::from_iter(into_iter.into_iter().map(|b| *b)) in from_iter()
1320 unsafe impl Send for BytesMut {} implementation
1321 unsafe impl Sync for BytesMut {} implementation
1329 impl PartialEq<[u8]> for BytesMut { implementation
1335 impl PartialOrd<[u8]> for BytesMut { implementation
1341 impl PartialEq<BytesMut> for [u8] {
1342 fn eq(&self, other: &BytesMut) -> bool { in eq()
1347 impl PartialOrd<BytesMut> for [u8] {
1348 fn partial_cmp(&self, other: &BytesMut) -> Option<cmp::Ordering> { in partial_cmp()
1353 impl PartialEq<str> for BytesMut { implementation
1359 impl PartialOrd<str> for BytesMut { implementation
1365 impl PartialEq<BytesMut> for str {
1366 fn eq(&self, other: &BytesMut) -> bool { in eq()
1371 impl PartialOrd<BytesMut> for str {
1372 fn partial_cmp(&self, other: &BytesMut) -> Option<cmp::Ordering> { in partial_cmp()
1377 impl PartialEq<Vec<u8>> for BytesMut { implementation
1383 impl PartialOrd<Vec<u8>> for BytesMut { implementation
1389 impl PartialEq<BytesMut> for Vec<u8> {
1390 fn eq(&self, other: &BytesMut) -> bool { in eq()
1395 impl PartialOrd<BytesMut> for Vec<u8> {
1396 fn partial_cmp(&self, other: &BytesMut) -> Option<cmp::Ordering> { in partial_cmp()
1401 impl PartialEq<String> for BytesMut { implementation
1407 impl PartialOrd<String> for BytesMut { implementation
1413 impl PartialEq<BytesMut> for String {
1414 fn eq(&self, other: &BytesMut) -> bool { in eq()
1419 impl PartialOrd<BytesMut> for String {
1420 fn partial_cmp(&self, other: &BytesMut) -> Option<cmp::Ordering> { in partial_cmp()
1425 impl<'a, T: ?Sized> PartialEq<&'a T> for BytesMut implementation
1427 BytesMut: PartialEq<T>,
1434 impl<'a, T: ?Sized> PartialOrd<&'a T> for BytesMut implementation
1436 BytesMut: PartialOrd<T>,
1443 impl PartialEq<BytesMut> for &[u8] {
1444 fn eq(&self, other: &BytesMut) -> bool { in eq()
1449 impl PartialOrd<BytesMut> for &[u8] {
1450 fn partial_cmp(&self, other: &BytesMut) -> Option<cmp::Ordering> { in partial_cmp()
1455 impl PartialEq<BytesMut> for &str {
1456 fn eq(&self, other: &BytesMut) -> bool { in eq()
1461 impl PartialOrd<BytesMut> for &str {
1462 fn partial_cmp(&self, other: &BytesMut) -> Option<cmp::Ordering> { in partial_cmp()
1467 impl PartialEq<BytesMut> for Bytes {
1468 fn eq(&self, other: &BytesMut) -> bool { in eq()
1473 impl PartialEq<Bytes> for BytesMut { implementation
1554 use super::BytesMut;
1560 let a = BytesMut::from(&b"abcdefgh"[..]).split().freeze(); in bytes_mut_cloning_frozen()