Struct protobuf::reflect::ReflectRepeatedRef
source · pub struct ReflectRepeatedRef<'a> { /* private fields */ }
Expand description
Dynamic reference to repeated field
Implementations§
source§impl<'a> ReflectRepeatedRef<'a>
impl<'a> ReflectRepeatedRef<'a>
sourcepub fn get(&self, index: usize) -> ReflectValueRef<'a>
pub fn get(&self, index: usize) -> ReflectValueRef<'a>
Get item by index
sourcepub fn element_type(&self) -> RuntimeType
pub fn element_type(&self) -> RuntimeType
Runtime type of element
Trait Implementations§
source§impl<'a> Clone for ReflectRepeatedRef<'a>
impl<'a> Clone for ReflectRepeatedRef<'a>
source§fn clone(&self) -> ReflectRepeatedRef<'a>
fn clone(&self) -> ReflectRepeatedRef<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for ReflectRepeatedRef<'a>
impl<'a> Debug for ReflectRepeatedRef<'a>
source§impl<'a> IntoIterator for &'a ReflectRepeatedRef<'a>
impl<'a> IntoIterator for &'a ReflectRepeatedRef<'a>
source§impl<'a> IntoIterator for ReflectRepeatedRef<'a>
impl<'a> IntoIterator for ReflectRepeatedRef<'a>
source§impl<'a> PartialEq<[ReflectValueBox]> for ReflectRepeatedRef<'a>
impl<'a> PartialEq<[ReflectValueBox]> for ReflectRepeatedRef<'a>
source§fn eq(&self, other: &[ReflectValueBox]) -> bool
fn eq(&self, other: &[ReflectValueBox]) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialEq<ReflectRepeatedRef<'a>> for [ReflectValueBox]
impl<'a> PartialEq<ReflectRepeatedRef<'a>> for [ReflectValueBox]
source§fn eq(&self, other: &ReflectRepeatedRef<'_>) -> bool
fn eq(&self, other: &ReflectRepeatedRef<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialEq<ReflectRepeatedRef<'a>> for ReflectRepeatedMut<'a>
impl<'a> PartialEq<ReflectRepeatedRef<'a>> for ReflectRepeatedMut<'a>
source§fn eq(&self, other: &ReflectRepeatedRef<'_>) -> bool
fn eq(&self, other: &ReflectRepeatedRef<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialEq<ReflectRepeatedRef<'a>> for Vec<ReflectValueBox>
impl<'a> PartialEq<ReflectRepeatedRef<'a>> for Vec<ReflectValueBox>
source§fn eq(&self, other: &ReflectRepeatedRef<'_>) -> bool
fn eq(&self, other: &ReflectRepeatedRef<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialEq<Vec<ReflectValueBox>> for ReflectRepeatedRef<'a>
impl<'a> PartialEq<Vec<ReflectValueBox>> for ReflectRepeatedRef<'a>
source§impl<'a> PartialEq for ReflectRepeatedRef<'a>
impl<'a> PartialEq for ReflectRepeatedRef<'a>
source§impl<'a> ReflectEq for ReflectRepeatedRef<'a>
impl<'a> ReflectEq for ReflectRepeatedRef<'a>
source§fn reflect_eq(&self, that: &Self, mode: &ReflectEqMode) -> bool
fn reflect_eq(&self, that: &Self, mode: &ReflectEqMode) -> bool
Perform the equality comparison.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReflectRepeatedRef<'a>
impl<'a> Send for ReflectRepeatedRef<'a>
impl<'a> Sync for ReflectRepeatedRef<'a>
impl<'a> Unpin for ReflectRepeatedRef<'a>
impl<'a> !UnwindSafe for ReflectRepeatedRef<'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