pub struct Dictionary(/* private fields */);Implementations§
Source§impl Dictionary
impl Dictionary
Sourcepub fn get<Q>(&self, query: &Q) -> Option<&Object>
pub fn get<Q>(&self, query: &Q) -> Option<&Object>
Returns a reference to the value corresponding to the key.
Sourcepub fn get_mut<Q>(&mut self, query: &Q) -> Option<&mut Object>
pub fn get_mut<Q>(&mut self, query: &Q) -> Option<&mut Object>
Returns a mutable reference to the value corresponding to the key.
Sourcepub fn iter(&self) -> DictIter<'_> ⓘ
pub fn iter(&self) -> DictIter<'_> ⓘ
Returns an iterator over the (String, Object) pairs of the
dictionary.
Sourcepub fn iter_mut(&mut self) -> DictIterMut<'_> ⓘ
pub fn iter_mut(&mut self) -> DictIterMut<'_> ⓘ
Returns a mutable iterator over the (String, Object) pairs of the
dictionary.
Sourcepub fn non_owning(&self) -> NonOwning<'_, Self>
pub fn non_owning(&self) -> NonOwning<'_, Self>
Returns a non-owning version of this Array.
Trait Implementations§
Source§impl Clone for Dictionary
impl Clone for Dictionary
Source§fn clone(&self) -> Dictionary
fn clone(&self) -> Dictionary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Dictionary
impl Debug for Dictionary
Source§impl Default for Dictionary
impl Default for Dictionary
Source§fn default() -> Dictionary
fn default() -> Dictionary
Returns the “default value” for a type. Read more
Source§impl From<Dictionary> for Object
impl From<Dictionary> for Object
Source§fn from(dictionary: Dictionary) -> Self
fn from(dictionary: Dictionary) -> Self
Converts to this type from the input type.
Source§impl<K, V> FromIterator<(K, V)> for Dictionary
impl<K, V> FromIterator<(K, V)> for Dictionary
Source§impl FromObject for Dictionary
impl FromObject for Dictionary
Source§impl<S> Index<S> for Dictionary
impl<S> Index<S> for Dictionary
Source§impl<S> IndexMut<S> for Dictionary
impl<S> IndexMut<S> for Dictionary
Source§impl IntoIterator for Dictionary
impl IntoIterator for Dictionary
Source§impl PartialEq for Dictionary
impl PartialEq for Dictionary
Source§impl Poppable for Dictionary
impl Poppable for Dictionary
Source§impl Pushable for Dictionary
impl Pushable for Dictionary
impl StructuralPartialEq for Dictionary
Auto Trait Implementations§
impl Freeze for Dictionary
impl RefUnwindSafe for Dictionary
impl !Send for Dictionary
impl !Sync for Dictionary
impl Unpin for Dictionary
impl UnwindSafe for Dictionary
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