#[non_exhaustive]pub enum RepeatedFieldEncoding {
Packed,
Expanded,
}Expand description
Controls wire encoding of repeated scalar fields.
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.
Packed
Packed encoding (length-delimited, all values concatenated).
Expanded
Expanded encoding (one tag per element).
Trait Implementations§
Source§impl Clone for RepeatedFieldEncoding
impl Clone for RepeatedFieldEncoding
Source§fn clone(&self) -> RepeatedFieldEncoding
fn clone(&self) -> RepeatedFieldEncoding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RepeatedFieldEncoding
Source§impl Debug for RepeatedFieldEncoding
impl Debug for RepeatedFieldEncoding
impl Eq for RepeatedFieldEncoding
Source§impl PartialEq for RepeatedFieldEncoding
impl PartialEq for RepeatedFieldEncoding
Source§fn eq(&self, other: &RepeatedFieldEncoding) -> bool
fn eq(&self, other: &RepeatedFieldEncoding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RepeatedFieldEncoding
Auto Trait Implementations§
impl Freeze for RepeatedFieldEncoding
impl RefUnwindSafe for RepeatedFieldEncoding
impl Send for RepeatedFieldEncoding
impl Sync for RepeatedFieldEncoding
impl Unpin for RepeatedFieldEncoding
impl UnsafeUnpin for RepeatedFieldEncoding
impl UnwindSafe for RepeatedFieldEncoding
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