ValidBindingSignature

Trait ValidBindingSignature 

Source
pub trait ValidBindingSignature<'a, C: 'a>: ValidAmalgamation<'a, C> + Sealed {
    // Provided method
    fn map<F: Fn(&'a Signature) -> Option<T>, T>(&self, f: F) -> Option<T> { ... }
}
Expand description

Locates information on the active binding signature or direct key signature.

§Sealed trait

This trait is sealed and cannot be implemented for types outside this crate. Therefore it can be extended in a non-breaking way. If you want to implement the trait inside the crate you also need to implement the seal::Sealed marker trait.

Provided Methods§

Source

fn map<F: Fn(&'a Signature) -> Option<T>, T>(&self, f: F) -> Option<T>

Maps the given function over binding and direct key signature.

Makes f consider both the binding signature and the direct key signature. Information in the binding signature takes precedence over the direct key signature. See also Section 5.2.3.10 of RFC 9580.

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<'a, C> ValidBindingSignature<'a, C> for ValidComponentAmalgamation<'a, C>
where C: Send + Sync,

Source§

impl<'a, P, R, R2> ValidBindingSignature<'a, Key<P, R>> for ValidKeyAmalgamation<'a, P, R, R2>
where P: 'a + KeyParts, R: 'a + KeyRole, R2: Copy, Self: PrimaryKey<'a, P, R>,