[][src]Enum prc::param::ParamKind

pub enum ParamKind {
    Bool(bool),
    I8(i8),
    U8(u8),
    I16(i16),
    U16(u16),
    I32(i32),
    U32(u32),
    Float(f32),
    Hash(Hash40),
    Str(String),
    List(ParamList),
    Struct(ParamStruct),
}

Variants

Bool(bool)
I8(i8)
U8(u8)
I16(i16)
U16(u16)
I32(i32)
U32(u32)
Float(f32)
Hash(Hash40)
Str(String)
List(ParamList)
Struct(ParamStruct)

Implementations

impl ParamKind[src]

pub fn try_into_owned<T>(self) -> Result<T, T::Error> where
    T: TryFrom<ParamKind>, 
[src]

pub fn try_into_ref<'a, T>(
    &'a self
) -> Result<&'a T, <&'a T as TryFrom<&'a ParamKind>>::Error> where
    &'a T: TryFrom<&'a ParamKind>, 
[src]

pub fn try_into_mut<'a, T>(
    &'a mut self
) -> Result<&'a mut T, <&'a mut T as TryFrom<&'a mut ParamKind>>::Error> where
    &'a mut T: TryFrom<&'a mut ParamKind>, 
[src]

pub fn unwrap_as_hashmap(self) -> HashMap<Hash40, ParamKind>[src]

pub fn unwrap_as_hashmap_ref(&self) -> HashMap<Hash40, &ParamKind>[src]

pub fn unwrap_as_hashmap_mut(&mut self) -> HashMap<Hash40, &mut ParamKind>[src]

Trait Implementations

impl Clone for ParamKind[src]

impl Debug for ParamKind[src]

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

impl PartialEq<ParamKind> for ParamKind[src]

impl Serialize for ParamKind[src]

impl StructuralPartialEq for ParamKind[src]

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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 ParamKind> for &'a u8[src]

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a mut ParamKind> for &'a mut ParamList[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<'a> TryFrom<&'a mut ParamKind> for &'a mut u8[src]

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

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

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<ParamKind> for bool[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<ParamKind> for i8[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<ParamKind> for ParamList[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.

impl TryFrom<ParamKind> for u8[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<ParamKind> for i16[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<ParamKind> for u16[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<ParamKind> for i32[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<ParamKind> for u32[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<ParamKind> for f32[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<ParamKind> for Hash40[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<ParamKind> for String[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.