webview2_com

Trait InvokeArg

Source
pub trait InvokeArg<'a> {
    type Input: 'a;

    // Required method
    fn convert(input: Self::Input) -> <Self as ClosureArg>::Output
       where Self: ClosureArg;
}

Required Associated Types§

Source

type Input: 'a

Required Methods§

Source

fn convert(input: Self::Input) -> <Self as ClosureArg>::Output
where Self: ClosureArg,

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 InvokeArg<'_> for HRESULT

Source§

impl InvokeArg<'_> for BOOL

Source§

type Input = BOOL

Source§

fn convert(input: BOOL) -> bool

Source§

impl<'a> InvokeArg<'a> for PCWSTR

Source§

impl<'a, I: 'a + Interface + Clone> InvokeArg<'a> for Option<I>

Source§

type Input = Ref<'a, I>

Source§

fn convert(input: Ref<'a, I>) -> <Self as ClosureArg>::Output

Implementors§