pub enum UnknownValueRef<'o> {
    Fixed32(u32),
    Fixed64(u64),
    Varint(u64),
    LengthDelimited(&'o [u8]),
}
Expand description

Reference to unknown value.

See UnknownFields for explanations.

Variants

Fixed32(u32)

32-bit unknown

Fixed64(u64)

64-bit unknown

Varint(u64)

Varint unknown

LengthDelimited(&'o [u8])

Length-delimited unknown

Implementations

Wire-type to serialize this unknown

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.