NonEmptyDict

Struct NonEmptyDict 

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

Source§

fn into_inner(self) -> T

Converts this wrapper into an underlying type.
Source§

fn wrap_inner(inner: &T) -> &Self

Converts an inner type into a wrapper.
Source§

impl<'de> Deserialize<'de> for NonEmptyDict<Dict<u32, ()>>

Source§

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

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'a, K, V> Load<'a> for NonEmptyDict<Dict<K, V>>
where K: DictKey,

Source§

fn load_from(slice: &mut CellSlice<'a>) -> Result<Self, Error>

Tries to load itself from a cell slice.
Source§

impl Serialize for NonEmptyDict<Dict<u32, ()>>

Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl Serialize for NonEmptyDict<Dict<u32, StoragePrices>>

Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl<K, V> Store for NonEmptyDict<Dict<K, V>>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> EquivalentRepr<T> for T