Struct protobuf::reflect::ReflectMapMut
source · [−]pub struct ReflectMapMut<'a> { /* private fields */ }
Expand description
Dynamic mutable reference to map
field
Implementations
sourceimpl<'a> ReflectMapMut<'a>
impl<'a> ReflectMapMut<'a>
sourcepub fn key_type(&self) -> RuntimeType
pub fn key_type(&self) -> RuntimeType
Map key type
sourcepub fn value_type(&self) -> RuntimeType
pub fn value_type(&self) -> RuntimeType
Map value type
sourcepub fn get(&self, key: ReflectValueRef<'_>) -> Option<ReflectValueRef<'_>>
pub fn get(&self, key: ReflectValueRef<'_>) -> Option<ReflectValueRef<'_>>
Find a value for given key
sourcepub fn insert(&mut self, key: ReflectValueBox, value: ReflectValueBox)
pub fn insert(&mut self, key: ReflectValueBox, value: ReflectValueBox)
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ReflectMapMut<'a>
impl<'a> Send for ReflectMapMut<'a>
impl<'a> Sync for ReflectMapMut<'a>
impl<'a> Unpin for ReflectMapMut<'a>
impl<'a> !UnwindSafe for ReflectMapMut<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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