Struct protobuf::reflect::ReflectMapRef
source · [−]pub struct ReflectMapRef<'a> { /* private fields */ }
Expand description
Dynamic reference to map
field
Implementations
sourceimpl<'a> ReflectMapRef<'a>
impl<'a> ReflectMapRef<'a>
sourcepub fn get(&self, key: ReflectValueRef<'_>) -> Option<ReflectValueRef<'_>>
pub fn get(&self, key: ReflectValueRef<'_>) -> Option<ReflectValueRef<'_>>
Find a value by given key.
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
Trait Implementations
sourceimpl<'a> Clone for ReflectMapRef<'a>
impl<'a> Clone for ReflectMapRef<'a>
sourcefn clone(&self) -> ReflectMapRef<'a>
fn clone(&self) -> ReflectMapRef<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for ReflectMapRef<'a>
impl<'a> Debug for ReflectMapRef<'a>
sourceimpl<'a, 'b: 'a> IntoIterator for &'b ReflectMapRef<'a>
impl<'a, 'b: 'a> IntoIterator for &'b ReflectMapRef<'a>
type Item = (ReflectValueRef<'a>, ReflectValueRef<'a>)
type Item = (ReflectValueRef<'a>, ReflectValueRef<'a>)
The type of the elements being iterated over.
type IntoIter = ReflectMapRefIter<'a>
type IntoIter = ReflectMapRefIter<'a>
Which kind of iterator are we turning this into?
sourceimpl<'a> PartialEq<ReflectMapRef<'a>> for ReflectMapRef<'a>
impl<'a> PartialEq<ReflectMapRef<'a>> for ReflectMapRef<'a>
sourceimpl<'a> ReflectEq for ReflectMapRef<'a>
impl<'a> ReflectEq for ReflectMapRef<'a>
sourcefn 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 ReflectMapRef<'a>
impl<'a> Send for ReflectMapRef<'a>
impl<'a> Sync for ReflectMapRef<'a>
impl<'a> Unpin for ReflectMapRef<'a>
impl<'a> !UnwindSafe for ReflectMapRef<'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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more