Enum protobuf::reflect::ReflectFieldRef
source · 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§
impl<'a> !RefUnwindSafe for ReflectFieldRef<'a>
impl<'a> !Send for ReflectFieldRef<'a>
impl<'a> !Sync for ReflectFieldRef<'a>
impl<'a> Unpin for ReflectFieldRef<'a>
impl<'a> !UnwindSafe for ReflectFieldRef<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more