Struct protobuf::UnknownValues
source · pub struct UnknownValues {
pub fixed32: Vec<u32>,
pub fixed64: Vec<u64>,
pub varint: Vec<u64>,
pub length_delimited: Vec<Vec<u8>>,
}
Expand description
Field unknown values.
See UnknownFields
for explanations.
Fields§
§fixed32: Vec<u32>
32-bit unknowns
fixed64: Vec<u64>
64-bit unknowns
varint: Vec<u64>
Varint unknowns
length_delimited: Vec<Vec<u8>>
Length-delimited unknowns
Implementations§
source§impl UnknownValues
impl UnknownValues
sourcepub fn add_value(&mut self, value: UnknownValue)
pub fn add_value(&mut self, value: UnknownValue)
Add unknown value
sourcepub fn iter<'s>(&'s self) -> UnknownValuesIter<'s> ⓘ
pub fn iter<'s>(&'s self) -> UnknownValuesIter<'s> ⓘ
Iterate over unknown values
Trait Implementations§
source§impl Clone for UnknownValues
impl Clone for UnknownValues
source§fn clone(&self) -> UnknownValues
fn clone(&self) -> UnknownValues
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UnknownValues
impl Debug for UnknownValues
source§impl Default for UnknownValues
impl Default for UnknownValues
source§fn default() -> UnknownValues
fn default() -> UnknownValues
Returns the “default value” for a type. Read more
source§impl Hash for UnknownValues
impl Hash for UnknownValues
source§impl<'a> IntoIterator for &'a UnknownValues
impl<'a> IntoIterator for &'a UnknownValues
§type Item = UnknownValueRef<'a>
type Item = UnknownValueRef<'a>
The type of the elements being iterated over.
§type IntoIter = UnknownValuesIter<'a>
type IntoIter = UnknownValuesIter<'a>
Which kind of iterator are we turning this into?
source§impl PartialEq<UnknownValues> for UnknownValues
impl PartialEq<UnknownValues> for UnknownValues
source§fn eq(&self, other: &UnknownValues) -> bool
fn eq(&self, other: &UnknownValues) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UnknownValues
impl StructuralEq for UnknownValues
impl StructuralPartialEq for UnknownValues
Auto Trait Implementations§
impl RefUnwindSafe for UnknownValues
impl Send for UnknownValues
impl Sync for UnknownValues
impl Unpin for UnknownValues
impl UnwindSafe for UnknownValues
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