PrimaryKeyFromKey

Trait PrimaryKeyFromKey 

Source
pub trait PrimaryKeyFromKey: Copy {
    // Required method
    fn try_from_key(key: Key) -> Result<Self, ExecutorError>;
}
Expand description

Convert a stored Key into a concrete primary key type.

Required Methods§

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.

Implementations on Foreign Types§

Source§

impl PrimaryKeyFromKey for i8

Source§

impl PrimaryKeyFromKey for i16

Source§

impl PrimaryKeyFromKey for i32

Source§

impl PrimaryKeyFromKey for i64

Source§

impl PrimaryKeyFromKey for u8

Source§

impl PrimaryKeyFromKey for u16

Source§

impl PrimaryKeyFromKey for u32

Source§

impl PrimaryKeyFromKey for u64

Source§

impl PrimaryKeyFromKey for ()

Implementors§