pub struct MapEntry { /* private fields */ }Expand description
Maps key: message to value: message
Implementations
sourceimpl MapEntry
impl MapEntry
sourcepub const fn inner(&self) -> (&Message, &Message)
pub const fn inner(&self) -> (&Message, &Message)
Access the internal key and value as a tuple of references
sourcepub fn to_ref(&self) -> MapEntryRef<'_>
pub fn to_ref(&self) -> MapEntryRef<'_>
Create a new MapEntryRef with lifetime bound to self
sourcepub fn into_inner(self) -> (Message, Message)
pub fn into_inner(self) -> (Message, Message)
Take the internal key and value as owned value
Trait Implementations
sourceimpl FromIterator<MapEntry> for Message
impl FromIterator<MapEntry> for Message
sourcefn from_iter<I: IntoIterator<Item = MapEntry>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = MapEntry>>(iter: I) -> Self
Creates a value from an iterator. Read more
impl StructuralPartialEq for MapEntry
Auto Trait Implementations
impl RefUnwindSafe for MapEntry
impl Send for MapEntry
impl Sync for MapEntry
impl Unpin for MapEntry
impl UnwindSafe for MapEntry
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