Expand description
A simple key-value storage
Fields
kv: Vec<(&'static str, String)>
The actual key value storage
Implementations
sourceimpl ArgminKV
impl ArgminKV
Trait Implementations
sourceimpl Deserialize<'static> for ArgminKV
impl Deserialize<'static> for ArgminKV
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Extend<(&'static str, String)> for ArgminKV
impl Extend<(&'static str, String)> for ArgminKV
sourcefn extend<I: IntoIterator<Item = (&'static str, String)>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = (&'static str, String)>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl<'a> From<&'a ArgminKV> for ArgminSlogKV
impl<'a> From<&'a ArgminKV> for ArgminSlogKV
sourcefn from(i: &'a ArgminKV) -> ArgminSlogKV
fn from(i: &'a ArgminKV) -> ArgminSlogKV
Performs the conversion.
sourceimpl Ord for ArgminKV
impl Ord for ArgminKV
sourceimpl PartialOrd<ArgminKV> for ArgminKV
impl PartialOrd<ArgminKV> for ArgminKV
sourcefn partial_cmp(&self, other: &ArgminKV) -> Option<Ordering>
fn partial_cmp(&self, other: &ArgminKV) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for ArgminKV
impl StructuralEq for ArgminKV
impl StructuralPartialEq for ArgminKV
Auto Trait Implementations
impl RefUnwindSafe for ArgminKV
impl Send for ArgminKV
impl Sync for ArgminKV
impl Unpin for ArgminKV
impl UnwindSafe for ArgminKV
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more