pub enum ReflectFieldRef<'a> {
    Optional(Option<ReflectValueRef<'a>>),
    Repeated(&'a dyn ReflectRepeated),
    Map(&'a dyn ReflectMap),
}
Expand description

Reference to a value stored in a field, optional, repeated or map.

Variants

Optional(Option<ReflectValueRef<'a>>)

Singular field, optional or required in proto3 and just plain field in proto3

Repeated(&'a dyn ReflectRepeated)

Repeated field

Map(&'a dyn ReflectMap)

Map field

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.