pub struct Dictionary { /* private fields */ }Expand description
A key value based dictionary.
Implementations§
Source§impl Dictionary
impl Dictionary
Sourcepub fn values(&self) -> &[KBox<Any>]
pub fn values(&self) -> &[KBox<Any>]
Gets a slice containing all the values in this dictionary.
Sourcepub fn insert(&mut self, key: impl Into<KBox<Any>>, value: impl Into<KBox<Any>>)
pub fn insert(&mut self, key: impl Into<KBox<Any>>, value: impl Into<KBox<Any>>)
Insert a specified key and value at the end of the dictionary. No checks are done on uniqueness so duplicates are possible.
Trait Implementations§
Source§impl AsRef<Any> for Dictionary
impl AsRef<Any> 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