Struct dbus_serialize::types::Dictionary
[−]
[src]
pub struct Dictionary {
pub map: HashMap<BasicValue, Value>,
// some fields omitted
}Fields
map: HashMap<BasicValue, Value>
Methods
impl Dictionary[src]
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.
fn new_with_sig(map: HashMap<BasicValue, Value>, sig: String) -> Dictionary
Create a new Dictionary from the given map. If map is non-empty, then sig must match the type of the contents.
Trait Implementations
impl PartialEq for Dictionary[src]
fn eq(&self, __arg_0: &Dictionary) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Dictionary) -> bool
This method tests for !=.
impl Debug for Dictionary[src]
impl Clone for Dictionary[src]
fn clone(&self) -> Dictionary
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more