Struct protobuf::reflect::ReflectRepeatedMut
source · [−]pub struct ReflectRepeatedMut<'a> { /* private fields */ }
Expand description
Dynamic mutable reference to repeated field
Implementations
sourceimpl<'a> ReflectRepeatedMut<'a>
impl<'a> ReflectRepeatedMut<'a>
sourcepub fn get(&'a self, index: usize) -> ReflectValueRef<'a>
pub fn get(&'a self, index: usize) -> ReflectValueRef<'a>
Get an item by index
Note: return immutable reference.
sourcepub fn element_type(&self) -> RuntimeType
pub fn element_type(&self) -> RuntimeType
Runtime type of element
sourcepub fn set(&mut self, index: usize, value: ReflectValueBox)
pub fn set(&mut self, index: usize, value: ReflectValueBox)
Set a value at given index.
Panics
If index if out of range or value type does not match container element type
sourcepub fn push(&mut self, value: ReflectValueBox)
pub fn push(&mut self, value: ReflectValueBox)
Push an item to repeated field.
Panics
If index if out of range or value type does not match container element type
Trait Implementations
sourceimpl<'a> Debug for ReflectRepeatedMut<'a>
impl<'a> Debug for ReflectRepeatedMut<'a>
sourceimpl<'a> IntoIterator for &'a ReflectRepeatedMut<'a>
impl<'a> IntoIterator for &'a ReflectRepeatedMut<'a>
sourceimpl<'a> PartialEq<[ReflectValueBox]> for ReflectRepeatedMut<'a>
impl<'a> PartialEq<[ReflectValueBox]> for ReflectRepeatedMut<'a>
sourcefn eq(&self, other: &[ReflectValueBox]) -> bool
fn eq(&self, other: &[ReflectValueBox]) -> bool
sourceimpl<'a> PartialEq<ReflectRepeatedMut<'a>> for [ReflectValueBox]
impl<'a> PartialEq<ReflectRepeatedMut<'a>> for [ReflectValueBox]
sourcefn eq(&self, other: &ReflectRepeatedMut<'_>) -> bool
fn eq(&self, other: &ReflectRepeatedMut<'_>) -> bool
sourceimpl<'a> PartialEq<ReflectRepeatedMut<'a>> for ReflectRepeatedMut<'a>
impl<'a> PartialEq<ReflectRepeatedMut<'a>> for ReflectRepeatedMut<'a>
sourceimpl<'a> PartialEq<ReflectRepeatedMut<'a>> for Vec<ReflectValueBox>
impl<'a> PartialEq<ReflectRepeatedMut<'a>> for Vec<ReflectValueBox>
sourcefn eq(&self, other: &ReflectRepeatedMut<'_>) -> bool
fn eq(&self, other: &ReflectRepeatedMut<'_>) -> bool
sourceimpl<'a> PartialEq<ReflectRepeatedRef<'a>> for ReflectRepeatedMut<'a>
impl<'a> PartialEq<ReflectRepeatedRef<'a>> for ReflectRepeatedMut<'a>
sourcefn eq(&self, other: &ReflectRepeatedRef<'_>) -> bool
fn eq(&self, other: &ReflectRepeatedRef<'_>) -> bool
sourceimpl<'a> PartialEq<Vec<ReflectValueBox, Global>> for ReflectRepeatedMut<'a>
impl<'a> PartialEq<Vec<ReflectValueBox, Global>> for ReflectRepeatedMut<'a>
sourcefn eq(&self, other: &Vec<ReflectValueBox>) -> bool
fn eq(&self, other: &Vec<ReflectValueBox>) -> bool
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ReflectRepeatedMut<'a>
impl<'a> !Send for ReflectRepeatedMut<'a>
impl<'a> Sync for ReflectRepeatedMut<'a>
impl<'a> Unpin for ReflectRepeatedMut<'a>
impl<'a> !UnwindSafe for ReflectRepeatedMut<'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