pub struct Dictionary {
pub map: HashMap<BasicValue, Value>,
/* private fields */
}Fields§
§map: HashMap<BasicValue, Value>Implementations§
Source§impl Dictionary
impl Dictionary
Sourcepub fn new(map: HashMap<BasicValue, Value>) -> Dictionary
pub fn new(map: HashMap<BasicValue, Value>) -> Dictionary
Create a new Dictionary from the given map. This function may only be used when it is never possible for the input map to be empty. The reason is that it is impossible to determine the type signature for an empty vector. Use new_with_sig instead.
§Panics
If map.len() is 0, this function will panic.
Sourcepub fn new_with_sig(map: HashMap<BasicValue, Value>, sig: String) -> Dictionary
pub fn new_with_sig(map: HashMap<BasicValue, Value>, sig: String) -> Dictionary
Create a new Dictionary from the given map. If sig is not of the form a{
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 (const: unstable) · 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 PartialEq for Dictionary
impl PartialEq for Dictionary
Source§fn eq(&self, other: &Dictionary) -> bool
fn eq(&self, other: &Dictionary) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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