pub enum Bytes {
One([u8; 1]),
Two([u8; 2]),
Three([u8; 3]),
}Variants§
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 Extend<Bytes> for Vec<u8>
Available on crate feature std only.
impl Extend<Bytes> for Vec<u8>
Available on crate feature
std only.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>
Source§impl<'a> IntoIterator for &'a Bytes
impl<'a> IntoIterator for &'a Bytes
Source§impl<'a> IntoIterator for &'a mut Bytes
impl<'a> IntoIterator for &'a mut Bytes
Source§impl IntoIterator for Bytes
impl IntoIterator for Bytes
impl Copy for Bytes
impl Eq for Bytes
impl StructuralPartialEq for Bytes
Auto Trait Implementations§
impl Freeze for Bytes
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
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