pub struct JsonMap<K>{ /* private fields */ }Implementations§
source§impl<K> JsonMap<K>
impl<K> JsonMap<K>
pub fn new() -> Self
pub fn insert(&mut self, key: K, value: JsonV<K>)
pub fn get_mut(&mut self, key: &K) -> Option<&mut JsonV<K>>
pub fn entry(&mut self, key: K) -> Entry<'_, K, JsonV<K>>
pub fn keys(&self) -> impl Iterator<Item = &K>
pub fn values(&self) -> impl Iterator<Item = &JsonV<K>>
pub fn values_mut(&mut self) -> impl Iterator<Item = &mut JsonV<K>>
pub fn get(&self, key: &K) -> Option<&JsonV<K>>
pub fn remove(&mut self, key: &K) -> Option<JsonV<K>>
pub fn contains_key(&self, key: &K) -> bool
pub fn len(&self) -> usize
pub fn clear(&mut self)
pub fn iter(&self) -> impl Iterator<Item = (&K, &JsonV<K>)>
pub fn iter_mut(&mut self) -> impl Iterator<Item = (&K, &mut JsonV<K>)>
Trait Implementations§
source§impl<'de, K> Deserialize<'de> for JsonMap<K>
impl<'de, K> Deserialize<'de> for JsonMap<K>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<K> FromIterator<(K, JsonV<K>)> for JsonMap<K>
impl<K> FromIterator<(K, JsonV<K>)> for JsonMap<K>
source§impl<K> IntoIterator for JsonMap<K>
impl<K> IntoIterator for JsonMap<K>
Auto Trait Implementations§
impl<K> Freeze for JsonMap<K>
impl<K> RefUnwindSafe for JsonMap<K>where
K: RefUnwindSafe,
impl<K> Send for JsonMap<K>where
K: Send,
impl<K> Sync for JsonMap<K>where
K: Sync,
impl<K> Unpin for JsonMap<K>where
K: Unpin,
impl<K> UnwindSafe for JsonMap<K>where
K: UnwindSafe,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)