[][src]Struct protobuf::UnknownFields

pub struct UnknownFields {
    pub fields: Option<Box<HashMap<u32, UnknownValues>>>,
}

Fields

fields: Option<Box<HashMap<u32, UnknownValues>>>

Methods

impl UnknownFields[src]

pub fn new() -> UnknownFields[src]

pub fn add_fixed32(&mut self, number: u32, fixed32: u32)[src]

pub fn add_fixed64(&mut self, number: u32, fixed64: u64)[src]

pub fn add_varint(&mut self, number: u32, varint: u64)[src]

pub fn add_length_delimited(&mut self, number: u32, length_delimited: Vec<u8>)[src]

pub fn add_value(&mut self, number: u32, value: UnknownValue)[src]

Important traits for UnknownFieldsIter<'s>
pub fn iter<'s>(&'s self) -> UnknownFieldsIter<'s>[src]

pub fn get(&self, field_number: u32) -> Option<&UnknownValues>[src]

Trait Implementations

impl Clear for UnknownFields[src]

impl Eq for UnknownFields[src]

impl Default for UnknownFields[src]

impl Clone for UnknownFields[src]

impl PartialEq<UnknownFields> for UnknownFields[src]

impl<'a> IntoIterator for &'a UnknownFields[src]

type Item = (u32, &'a UnknownValues)

The type of the elements being iterated over.

type IntoIter = UnknownFieldsIter<'a>

Which kind of iterator are we turning this into?

impl Debug for UnknownFields[src]

Auto Trait Implementations

impl Send for UnknownFields

impl Unpin for UnknownFields

impl Sync for UnknownFields

impl UnwindSafe for UnknownFields

impl RefUnwindSafe for UnknownFields

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]