pub struct ReflectRepeatedMut<'a> { /* private fields */ }
Expand description
Dynamic mutable reference to repeated field
Implementations§
Source§impl<'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§
Source§impl<'a> Debug for ReflectRepeatedMut<'a>
impl<'a> Debug for ReflectRepeatedMut<'a>
Source§impl<'a> IntoIterator for &'a ReflectRepeatedMut<'a>
impl<'a> IntoIterator for &'a ReflectRepeatedMut<'a>
Source§impl<'a> PartialEq<[ReflectValueBox]> for ReflectRepeatedMut<'a>
impl<'a> PartialEq<[ReflectValueBox]> for ReflectRepeatedMut<'a>
Source§impl<'a> PartialEq<ReflectRepeatedMut<'a>> for [ReflectValueBox]
impl<'a> PartialEq<ReflectRepeatedMut<'a>> for [ReflectValueBox]
Source§impl<'a> PartialEq<ReflectRepeatedMut<'a>> for Vec<ReflectValueBox>
impl<'a> PartialEq<ReflectRepeatedMut<'a>> for Vec<ReflectValueBox>
Source§impl<'a> PartialEq<ReflectRepeatedRef<'a>> for ReflectRepeatedMut<'a>
impl<'a> PartialEq<ReflectRepeatedRef<'a>> for ReflectRepeatedMut<'a>
Source§impl<'a> PartialEq<Vec<ReflectValueBox>> for ReflectRepeatedMut<'a>
impl<'a> PartialEq<Vec<ReflectValueBox>> for ReflectRepeatedMut<'a>
Source§impl<'a> PartialEq for ReflectRepeatedMut<'a>
impl<'a> PartialEq for ReflectRepeatedMut<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReflectRepeatedMut<'a>
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§
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