pub enum UnknownValue {
    Fixed32(u32),
    Fixed64(u64),
    Varint(u64),
    LengthDelimited(Vec<u8>),
}
Expand description

Unknown value.

See UnknownFields for the explanations.

Variants

Fixed32(u32)

32-bit unknown (e. g. fixed32 or float)

Fixed64(u64)

64-bit unknown (e. g. fixed64 or double)

Varint(u64)

Varint unknown (e. g. int32 or bool)

LengthDelimited(Vec<u8>)

Length-delimited unknown (e. g. message or string)

Implementations

Wire type for this unknown

As ref

Construct unknown value from sint32 value.

Construct unknown value from sint64 value.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.