pub struct Parameters { /* private fields */ }
Expand description
A new type for a set of parameters or name/value pairs.
Each parameter consists of the name of the parameter and its value.
Implementations§
Source§impl Parameters
impl Parameters
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
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.
Sourcepub fn iter(&self) -> ParameterIter<'_> ⓘ
pub fn iter(&self) -> ParameterIter<'_> ⓘ
Returns an Iterator
over the parameters in this set.
Trait Implementations§
Source§impl Clone for Parameters
impl Clone for Parameters
Source§fn clone(&self) -> Parameters
fn clone(&self) -> Parameters
Returns a copy of the value. Read more
1.0.0 · 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 Parameters
impl Debug for Parameters
Source§impl Default for Parameters
impl Default for Parameters
Source§impl Display for Parameters
impl Display for Parameters
Source§impl<K, V> Extend<(K, V)> for Parameters
impl<K, V> Extend<(K, V)> for Parameters
Source§fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<'i, K, V> FromIterator<&'i (K, V)> for Parameters
impl<'i, K, V> FromIterator<&'i (K, V)> for Parameters
Source§fn from_iter<T: IntoIterator<Item = &'i (K, V)>>(iter: T) -> Parameters
fn from_iter<T: IntoIterator<Item = &'i (K, V)>>(iter: T) -> Parameters
Creates a value from an iterator. Read more
Source§impl<K, V> FromIterator<(K, V)> for Parameters
impl<K, V> FromIterator<(K, V)> for Parameters
Source§fn from_iter<T: IntoIterator<Item = (K, V)>>(iter: T) -> Parameters
fn from_iter<T: IntoIterator<Item = (K, V)>>(iter: T) -> Parameters
Creates a value from an iterator. Read more
Source§impl PartialEq for Parameters
impl PartialEq for Parameters
impl StructuralPartialEq for Parameters
Auto Trait Implementations§
impl Freeze for Parameters
impl RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe for Parameters
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