Struct argmin::core::ArgminKV[][src]

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

Implementations

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(self, other: &mut ArgminKV) -> Self[src]

Merge another kv into self.kv

Trait Implementations

impl Clone for ArgminKV[src]

impl Debug for ArgminKV[src]

impl Default for ArgminKV[src]

impl Deserialize<'static> for ArgminKV[src]

impl Display for ArgminKV[src]

impl Eq for ArgminKV[src]

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

impl<'a> From<&'a ArgminKV> for ArgminSlogKV[src]

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

impl Hash for ArgminKV[src]

impl Ord for ArgminKV[src]

impl PartialEq<ArgminKV> for ArgminKV[src]

impl PartialOrd<ArgminKV> for ArgminKV[src]

impl Serialize for ArgminKV[src]

impl StructuralEq for ArgminKV[src]

impl StructuralPartialEq for ArgminKV[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,