Struct concision_core::params::store::ParamStore
source · pub struct ParamStore<T = f64, D = Ix2>{ /* private fields */ }Implementations§
source§impl<T, D> ParamStore<T, D>
impl<T, D> ParamStore<T, D>
pub fn new() -> Self
pub fn get(&self, kind: &ParamKind) -> Option<&Parameter<T, D>>
pub fn get_mut(&mut self, kind: &ParamKind) -> Option<&mut Parameter<T, D>>
pub fn insert(&mut self, param: Parameter<T, D>)
pub fn remove(&mut self, kind: &ParamKind) -> Option<Parameter<T, D>>
Trait Implementations§
source§impl<T, D> Clone for ParamStore<T, D>
impl<T, D> Clone for ParamStore<T, D>
source§fn clone(&self) -> ParamStore<T, D>
fn clone(&self) -> ParamStore<T, D>
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<T, D> Debug for ParamStore<T, D>
impl<T, D> Debug for ParamStore<T, D>
source§impl<T, D> Default for ParamStore<T, D>
impl<T, D> Default for ParamStore<T, D>
source§fn default() -> ParamStore<T, D>
fn default() -> ParamStore<T, D>
Returns the “default value” for a type. Read more
source§impl<'de, T, D> Deserialize<'de> for ParamStore<T, D>
impl<'de, T, D> Deserialize<'de> for ParamStore<T, D>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T, D> Extend<Parameter<T, D>> for ParamStore<T, D>
impl<T, D> Extend<Parameter<T, D>> for ParamStore<T, D>
source§fn extend<I: IntoIterator<Item = Parameter<T, D>>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = Parameter<T, D>>>(&mut self, iter: I)
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<'a, T, D> IntoIterator for &'a mut ParamStore<T, D>
impl<'a, T, D> IntoIterator for &'a mut ParamStore<T, D>
source§impl<T, D> IntoIterator for ParamStore<T, D>
impl<T, D> IntoIterator for ParamStore<T, D>
source§impl<T, D> PartialEq for ParamStore<T, D>
impl<T, D> PartialEq for ParamStore<T, D>
source§fn eq(&self, other: &ParamStore<T, D>) -> bool
fn eq(&self, other: &ParamStore<T, D>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<T, D> Serialize for ParamStore<T, D>
impl<T, D> Serialize for ParamStore<T, D>
impl<T, D> Eq for ParamStore<T, D>
impl<T, D> StructuralPartialEq for ParamStore<T, D>
Auto Trait Implementations§
impl<T, D> Freeze for ParamStore<T, D>
impl<T, D> RefUnwindSafe for ParamStore<T, D>where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, D> Send for ParamStore<T, D>where
T: Send,
impl<T, D> Sync for ParamStore<T, D>where
T: Sync,
impl<T, D> Unpin for ParamStore<T, D>where
D: Unpin,
impl<T, D> UnwindSafe for ParamStore<T, D>where
D: UnwindSafe,
T: RefUnwindSafe,
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