[][src]Struct argmin_core::ArgminKV

pub struct ArgminKV {
    pub kv: Vec<(&'static str, String)>,
}

A simple key-value storage

Fields

kv: Vec<(&'static str, String)>

The actual key value storage

Methods

impl ArgminKV[src]

pub fn new() -> Self[src]

Constructor

pub fn push<T: Display>(&mut self, key: &'static str, val: T) -> &mut Self[src]

Push a key-value pair to the kv vector.

This formats the val using format!. Therefore T has to implement Display.

pub fn merge(&mut self, other: &mut ArgminKV) -> &mut Self[src]

Merge another kv into self.kv

TODO: Probably not used anymore (?)

Trait Implementations

impl Default for ArgminKV[src]

impl Clone for ArgminKV[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for ArgminKV[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Eq for ArgminKV[src]

impl Extend<(&'static str, String)> for ArgminKV[src]

impl PartialOrd<ArgminKV> for ArgminKV[src]

impl PartialEq<ArgminKV> for ArgminKV[src]

impl Display for ArgminKV[src]

impl Hash for ArgminKV[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl FromIterator<(&'static str, String)> for ArgminKV[src]

impl Debug for ArgminKV[src]

impl Serialize for ArgminKV[src]

impl Deserialize<'static> for ArgminKV[src]

Auto Trait Implementations

impl Send for ArgminKV

impl Sync for ArgminKV

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]