Struct mpack::ValueMap
[−]
[src]
pub struct ValueMap(pub Vec<(Value, Value)>);
Methods
impl ValueMap
[src]
fn get<T: IntoValue>(&self, key: T) -> Option<&Value>
Retrieve a value from the map.
fn get_array<T: IntoValue>(&self, key: T) -> Option<Vec<Value>>
fn get_bool<T: IntoValue>(&self, key: T) -> Option<bool>
fn get_string<T: IntoValue>(&self, key: T) -> Option<String>
fn len(&self) -> usize
Returns the number of key/value pairs in the map.
Trait Implementations
impl Clone for ValueMap
[src]
fn clone(&self) -> ValueMap
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
impl PartialEq for ValueMap
[src]
fn eq(&self, __arg_0: &ValueMap) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ValueMap) -> bool
This method tests for !=
.