pub enum ReflectFieldRef<'a> {
Optional(ReflectOptionalRef<'a>),
Repeated(ReflectRepeatedRef<'a>),
Map(ReflectMapRef<'a>),
}
Expand description
Reference to a value stored in a field, optional, repeated or map.
Variants§
Optional(ReflectOptionalRef<'a>)
Singular field, optional or required in proto3 and just plain field in proto3
Repeated(ReflectRepeatedRef<'a>)
Repeated field
Map(ReflectMapRef<'a>)
Map field
Trait Implementations§
Source§impl<'a> PartialEq for ReflectFieldRef<'a>
impl<'a> PartialEq for ReflectFieldRef<'a>
Source§impl<'a> ReflectEq for ReflectFieldRef<'a>
impl<'a> ReflectEq for ReflectFieldRef<'a>
Source§fn reflect_eq(&self, that: &Self, mode: &ReflectEqMode) -> bool
fn reflect_eq(&self, that: &Self, mode: &ReflectEqMode) -> bool
Perform the equality comparison.
impl<'a> StructuralPartialEq for ReflectFieldRef<'a>
Auto Trait Implementations§
impl<'a> !Freeze for ReflectFieldRef<'a>
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