pub struct NonEmptyDict<T>(/* private fields */);Expand description
Dict wrapper for ConfigParamWrapper for parsing non-empty dictionaries.
Trait Implementations§
Source§impl<T> ConfigParamWrapper<T> for NonEmptyDict<T>
impl<T> ConfigParamWrapper<T> for NonEmptyDict<T>
Source§fn into_inner(self) -> T
fn into_inner(self) -> T
Converts this wrapper into an underlying type.
Source§fn wrap_inner(inner: &T) -> &Self
fn wrap_inner(inner: &T) -> &Self
Converts an inner type into a wrapper.
Source§impl<'de> Deserialize<'de> for NonEmptyDict<Dict<u32, ()>>
impl<'de> Deserialize<'de> for NonEmptyDict<Dict<u32, ()>>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserialize<'de> for NonEmptyDict<Dict<u32, StoragePrices>>
impl<'de> Deserialize<'de> for NonEmptyDict<Dict<u32, StoragePrices>>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for NonEmptyDict<Dict<u32, StoragePrices>>
impl Serialize for NonEmptyDict<Dict<u32, StoragePrices>>
Source§impl<K, V> Store for NonEmptyDict<Dict<K, V>>
impl<K, V> Store for NonEmptyDict<Dict<K, V>>
Source§fn store_into(
&self,
builder: &mut CellBuilder,
_: &mut dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, _: &mut dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
Auto Trait Implementations§
impl<T> Freeze for NonEmptyDict<T>where
T: Freeze,
impl<T> RefUnwindSafe for NonEmptyDict<T>where
T: RefUnwindSafe,
impl<T> Send for NonEmptyDict<T>where
T: Send,
impl<T> Sync for NonEmptyDict<T>where
T: Sync,
impl<T> Unpin for NonEmptyDict<T>where
T: Unpin,
impl<T> UnwindSafe for NonEmptyDict<T>where
T: UnwindSafe,
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