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

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

A simple key-value storage


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

The actual key value storage


impl ArgminKV[src]

pub fn new() -> Self[src]


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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>,