Enum protobuf::reflect::ReflectFieldRef
source · [−]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
sourceimpl<'a> PartialEq<ReflectFieldRef<'a>> for ReflectFieldRef<'a>
impl<'a> PartialEq<ReflectFieldRef<'a>> for ReflectFieldRef<'a>
sourcefn eq(&self, other: &ReflectFieldRef<'a>) -> bool
fn eq(&self, other: &ReflectFieldRef<'a>) -> bool
sourceimpl<'a> ReflectEq for ReflectFieldRef<'a>
impl<'a> ReflectEq for ReflectFieldRef<'a>
sourcefn 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> !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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more