pub struct BytesContainer<T>(pub T);Tuple Fields§
§0: TImplementations§
Source§impl<C> BytesContainer<C>
impl<C> BytesContainer<C>
Trait Implementations§
Source§impl<C> Extend<Bytes> for BytesContainer<C>
impl<C> Extend<Bytes> for BytesContainer<C>
Source§fn extend<T: IntoIterator<Item = Bytes>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Bytes>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<C> FromIterator<Bytes> for BytesContainer<C>
impl<C> FromIterator<Bytes> for BytesContainer<C>
Auto Trait Implementations§
impl<T> Freeze for BytesContainer<T>where
T: Freeze,
impl<T> RefUnwindSafe for BytesContainer<T>where
T: RefUnwindSafe,
impl<T> Send for BytesContainer<T>where
T: Send,
impl<T> Sync for BytesContainer<T>where
T: Sync,
impl<T> Unpin for BytesContainer<T>where
T: Unpin,
impl<T> UnwindSafe for BytesContainer<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more