referrerpolicy=no-referrer-when-downgrade
frame_support::traits::dynamic_params

Trait TryIntoKey

Source
pub trait TryIntoKey<T>: Sized {
    type Error;

    // Required method
    fn try_into_key(self) -> Result<T, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn try_into_key(self) -> Result<T, Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, U> TryIntoKey<U> for T
where U: TryFromKey<T>,

Source§

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