pub struct Map { /* private fields */ }
Expand description
A map of fields and their values, sorted by order of insertion.
Implementations§
Source§impl Map
impl Map
Sourcepub fn optional<T>(
&mut self,
key: &str,
decoder: impl Decoder<Output = T>,
) -> Result<Option<T>>
pub fn optional<T>( &mut self, key: &str, decoder: impl Decoder<Output = T>, ) -> Result<Option<T>>
Sourcepub fn tag(self, key: &str, value: impl Into<String>) -> Self
pub fn tag(self, key: &str, value: impl Into<String>) -> Self
Inserts a field in the Map
before all the other fields.
Sourcepub fn into_value(self) -> Value
pub fn into_value(self) -> Value
Trait Implementations§
impl Eq for Map
impl StructuralPartialEq for Map
Auto Trait Implementations§
impl Freeze for Map
impl RefUnwindSafe for Map
impl Send for Map
impl Sync for Map
impl Unpin for Map
impl UnwindSafe for Map
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.