Struct rincon_core::api::method::Parameters
[−]
[src]
pub struct Parameters { /* fields omitted */ }
A new type for a set of parameters or name/value pairs.
Each parameter consists of the name of the parameter and its value.
Methods
impl Parameters
[src]
pub fn empty() -> Self
[src]
Creates and empty set of parameters.
pub fn new() -> Self
[src]
Creates a new set of parameters, which is empty.
pub fn with_capacity(capacity: usize) -> Self
[src]
Creates a new set of parameters with the given capacity.
When the number of parameters to be inserted in the new parameter set is known beforehand using this function can speed up memory allocation.
pub fn is_empty(&self) -> bool
[src]
Returns whether this parameter set is empty.
ⓘImportant traits for ParameterIter<'i>pub fn iter(&self) -> ParameterIter
[src]
Returns an Iterator
over the parameters in this set.
pub fn insert<K, V>(&mut self, name: K, value: V) where
K: Into<String>,
V: Into<Value>,
[src]
K: Into<String>,
V: Into<Value>,
Inserts a name/value pair as a new parameter into this set.
Trait Implementations
impl Clone for Parameters
[src]
fn clone(&self) -> Parameters
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Parameters
[src]
fn eq(&self, __arg_0: &Parameters) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Parameters) -> bool
[src]
This method tests for !=
.
impl Default for Parameters
[src]
impl Debug for Parameters
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for Parameters
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<K, V> From<Vec<(K, V)>> for Parameters where
K: Into<String>,
V: Into<Value>,
[src]
K: Into<String>,
V: Into<Value>,
impl<K, V> FromIterator<(K, V)> for Parameters where
K: Into<String>,
V: Into<Value>,
[src]
K: Into<String>,
V: Into<Value>,
fn from_iter<T: IntoIterator<Item = (K, V)>>(iter: T) -> Parameters
[src]
Creates a value from an iterator. Read more
impl<'i, K, V> FromIterator<&'i (K, V)> for Parameters where
K: Into<String> + Clone,
V: Into<Value> + Clone,
[src]
K: Into<String> + Clone,
V: Into<Value> + Clone,
fn from_iter<T: IntoIterator<Item = &'i (K, V)>>(iter: T) -> Parameters
[src]
Creates a value from an iterator. Read more
impl<K, V> Extend<(K, V)> for Parameters where
K: Into<String>,
V: Into<Value>,
[src]
K: Into<String>,
V: Into<Value>,