Struct protobuf::UnknownFields
source · pub struct UnknownFields {
pub fields: Option<Box<HashMap<u32, UnknownValues>>>,
}
Fields§
§fields: Option<Box<HashMap<u32, UnknownValues>>>
Implementations§
source§impl UnknownFields
impl UnknownFields
pub fn new() -> UnknownFields
pub fn add_fixed32(&mut self, number: u32, fixed32: u32)
pub fn add_fixed64(&mut self, number: u32, fixed64: u64)
pub fn add_varint(&mut self, number: u32, varint: u64)
pub fn add_length_delimited(&mut self, number: u32, length_delimited: Vec<u8>)
pub fn add_value(&mut self, number: u32, value: UnknownValue)
pub fn iter<'s>(&'s self) -> UnknownFieldsIter<'s> ⓘ
pub fn get(&self, field_number: u32) -> Option<&UnknownValues>
Trait Implementations§
source§impl Clear for UnknownFields
impl Clear for UnknownFields
source§impl Clone for UnknownFields
impl Clone for UnknownFields
source§fn clone(&self) -> UnknownFields
fn clone(&self) -> UnknownFields
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 UnknownFields
impl Debug for UnknownFields
source§impl Default for UnknownFields
impl Default for UnknownFields
source§fn default() -> UnknownFields
fn default() -> UnknownFields
Returns the “default value” for a type. Read more
source§impl<'a> IntoIterator for &'a UnknownFields
impl<'a> IntoIterator for &'a UnknownFields
§type Item = (u32, &'a UnknownValues)
type Item = (u32, &'a UnknownValues)
The type of the elements being iterated over.
§type IntoIter = UnknownFieldsIter<'a>
type IntoIter = UnknownFieldsIter<'a>
Which kind of iterator are we turning this into?