Struct prc::param::ParamStruct[][src]

pub struct ParamStruct(pub Vec<(Hash40, ParamKind)>);

A list of key-value pairs of params. Acts essentially like a hash-map, but is presented in list form to preserve key order, as well as to handle rare cases where a key may be duplicated. Keys are hashed strings, represented by the Hash40 type.

Trait Implementations

impl Clone for ParamStruct[src]

impl Debug for ParamStruct[src]

impl Default for ParamStruct[src]

impl<'de> Deserialize<'de> for ParamStruct[src]

impl From<ParamStruct> for ParamKind[src]

impl PartialEq<ParamStruct> for ParamStruct[src]

impl Serialize for ParamStruct[src]

impl StructuralPartialEq for ParamStruct[src]

impl<'a> TryFrom<&'a ParamKind> for &'a ParamStruct[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a mut ParamKind> for &'a mut ParamStruct[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<ParamKind> for ParamStruct[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.