pub trait KeyDeserialize {
    type Output: Sized;

    // Required method
    fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>;

    // Provided method
    fn from_slice(value: &[u8]) -> StdResult<Self::Output> { ... }
}

Required Associated Types§

Required Methods§

source

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

Provided Methods§

source

fn from_slice(value: &[u8]) -> StdResult<Self::Output>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl KeyDeserialize for &str

§

type Output = String

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for &String

§

type Output = String

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for &Vec<u8>

§

type Output = Vec<u8>

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for &Addr

§

type Output = Addr

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for &[u8]

§

type Output = Vec<u8>

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for i8

§

type Output = i8

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for i16

§

type Output = i16

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for i32

§

type Output = i32

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for i64

§

type Output = i64

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for i128

§

type Output = i128

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for u8

§

type Output = u8

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for u16

§

type Output = u16

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for u32

§

type Output = u32

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for u64

§

type Output = u64

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for u128

§

type Output = u128

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for ()

§

type Output = ()

source§

fn from_vec(_value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for String

§

type Output = String

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for Vec<u8>

§

type Output = Vec<u8>

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl KeyDeserialize for Addr

§

type Output = Addr

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl<T: KeyDeserialize, U: KeyDeserialize> KeyDeserialize for (T, U)

Warning: This implementation is buggy in many cases except the most basic ones. In these cases, it will panic when you try to range through your keys. See #33 for more information. This will be fixed in version 2.0.

§

type Output = (<T as KeyDeserialize>::Output, <U as KeyDeserialize>::Output)

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl<T: KeyDeserialize, U: KeyDeserialize, V: KeyDeserialize> KeyDeserialize for (T, U, V)

source§

impl<const N: usize> KeyDeserialize for &[u8; N]

§

type Output = [u8; N]

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

source§

impl<const N: usize> KeyDeserialize for [u8; N]

§

type Output = [u8; N]

source§

fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>

Implementors§