Trait MaybeFromCandidateKeys

Source
pub trait MaybeFromCandidateKeys:
    OpaqueKeys
    + Decode
    + Sized {
    // Provided method
    fn maybe_from(keys: &CandidateKeys) -> Option<Self> { ... }
}
Expand description

Trait to try extract implementing type from [CandidateKeys].

Provided Methods§

Source

fn maybe_from(keys: &CandidateKeys) -> Option<Self>

Depends on Decode that is derived by impl_opaque_keys!

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§