SelectStaticCall

Trait SelectStaticCall 

Source
pub trait SelectStaticCall<Q, Then, Else, Output> {
    // Required method
    fn call() -> Output;
}
Expand description

Call a static method based on capability selection.

This trait enables calling StaticMethodImpl::call() through type-level selection without requiring the caller to prove that SelectCap::Out implements StaticMethodImpl.

Then and Else must implement StaticMethodImpl<Output>.

Required Methods§

Source

fn call() -> Output

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<S, Q, Then, Else, Output> SelectStaticCall<Q, Then, Else, Output> for S
where S: Evaluate<Q>, <S as Evaluate<Q>>::Out: Bool, Then: StaticMethodImpl<Output>, Else: StaticMethodImpl<Output>,