Home
last modified time | relevance | path

Searched refs:BufMut (Results 1 – 23 of 23) sorted by relevance

/external/rust/crates/bytes/
DCHANGELOG.md13 - Rename Buf/BufMut, methods to chunk/chunk_mut (#450)
23 - `BufMut` is now an `unsafe` trait (#432).
24 - `BufMut::bytes_mut()` returns `&mut UninitSlice`, a type owned by `bytes` to
27 - `Buf`/`BufMut` utility methods are moved onto the trait and `*Ext` traits are
31 - `BufMut::bytes_vectored_mut()` (#430).
47 - Fix `BufMut::advance_mut` to panic if advanced passed the capacity (#354)..
91 - `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
93 - `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
95 - Move `Buf` / `BufMut` "extra" functions to an extension trait (#306).
128 * impl `Buf` and `BufMut` for `Either` (#225).
[all …]
DREADME.md27 use bytes::{Bytes, BytesMut, Buf, BufMut};
/external/rust/crates/bytes/src/buf/
Dbuf_mut.rs29 pub unsafe trait BufMut { trait
902 fn chain_mut<U: BufMut>(self, next: U) -> Chain<Self, U> in chain_mut()
986 unsafe impl<T: BufMut + ?Sized> BufMut for &mut T { impl
990 unsafe impl<T: BufMut + ?Sized> BufMut for Box<T> {
994 unsafe impl BufMut for &mut [u8] { impl
1014 unsafe impl BufMut for Vec<u8> {
1079 fn _assert_trait_object(_b: &dyn BufMut) {} in _assert_trait_object() argument
Dwriter.rs1 use crate::BufMut;
19 impl<B: BufMut> Writer<B> {
77 impl<B: BufMut + Sized> io::Write for Writer<B> {
Dchain.rs2 use crate::{Buf, BufMut};
175 unsafe impl<T, U> BufMut for Chain<T, U>
177 T: BufMut,
178 U: BufMut,
Dlimit.rs2 use crate::BufMut;
59 unsafe impl<T: BufMut> BufMut for Limit<T> {
Dmod.rs33 pub use self::buf_mut::BufMut;
Dbuf_impl.rs814 use super::BufMut; in copy_to_bytes()
/external/rust/crates/bytes/tests/
Dtest_buf_mut.rs4 use bytes::{BufMut, BytesMut};
79 unsafe impl BufMut for Special { in test_deref_bufmut_forwards()
99 (&mut Special as &mut dyn BufMut).put_u8(b'x'); in test_deref_bufmut_forwards()
100 (Box::new(Special) as Box<dyn BufMut>).put_u8(b'x'); in test_deref_bufmut_forwards()
Dtest_chain.rs3 use bytes::{Buf, BufMut, Bytes};
Dtest_bytes.rs3 use bytes::{Buf, BufMut, Bytes, BytesMut};
/external/rust/crates/tokio/src/io/util/
Dread_buf.rs3 use bytes::BufMut;
14 B: BufMut, in read_buf() argument
38 B: BufMut,
Dasync_read_ext.rs16 use bytes::BufMut;
226 B: BufMut,
Dwrite_int.rs3 use bytes::BufMut;
39 BufMut::$writer(&mut &mut writer.buf[..], value);
/external/rust/crates/tokio/src/net/unix/datagram/
Dsocket.rs14 use bytes::BufMut;
739 pub fn try_recv_buf_from<B: BufMut>(&self, buf: &mut B) -> io::Result<(usize, SocketAddr)> {
802 pub fn try_recv_buf<B: BufMut>(&self, buf: &mut B) -> io::Result<usize> {
/external/rust/crates/bytes/src/
Dlib.rs85 pub use crate::buf::{Buf, BufMut};
Dbytes_mut.rs19 use crate::{Buf, BufMut, Bytes};
969 unsafe impl BufMut for BytesMut {
/external/rust/crates/tokio/src/net/
Dudp.rs11 use bytes::BufMut;
788 pub fn try_recv_buf<B: BufMut>(&self, buf: &mut B) -> io::Result<usize> {
852 pub fn try_recv_buf_from<B: BufMut>(&self, buf: &mut B) -> io::Result<(usize, SocketAddr)> {
/external/rust/crates/tokio/src/net/unix/
Dstream.rs19 use bytes::BufMut;
334 pub fn try_read_buf<B: BufMut>(&self, buf: &mut B) -> io::Result<usize> {
/external/rust/crates/tokio/src/net/tcp/
Dstream.rs16 use bytes::BufMut;
624 pub fn try_read_buf<B: BufMut>(&self, buf: &mut B) -> io::Result<usize> {
/external/rust/crates/bytes/benches/
Dbytes_mut.rs6 use bytes::{BufMut, BytesMut};
/external/rust/crates/protobuf/src/
Dbuf_read_iter.rs11 use bytes::BufMut;
/external/rust/crates/tokio/
DCHANGELOG.md442 `Buf`/`BufMut` ([#3003]).
516 - io: remove `bytes` from public API. `Buf` and `BufMut` implementation are
1062 - `read_buf` / `write_buf` for reading / writing `Buf` / `BufMut` ([#1881]).