#[non_exhaustive]pub enum Collection {
Vec,
Boxed,
Borrowed,
BorrowedArray,
}Expand description
The Rust type of a collection. The wire format is the same.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Vec
Vec<T>.
Boxed
Box<[T]>.
Borrowed
&'a [u8], borrowed from the bytes the message decodes from. Needs a
lifetime, and u8 elements counted by a field, a byte length or
the rest of the body.
BorrowedArray
&'a [u8; N], borrowed as Borrowed is. Needs
Count::Window of Len::Bytes(N).
Implementations§
Trait Implementations§
Source§impl Clone for Collection
impl Clone for Collection
impl Copy for Collection
Source§impl Debug for Collection
impl Debug for Collection
Source§impl Default for Collection
impl Default for Collection
impl Eq for Collection
Source§impl PartialEq for Collection
impl PartialEq for Collection
impl StructuralPartialEq for Collection
Auto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnsafeUnpin for Collection
impl UnwindSafe for Collection
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