Trait webview2_com::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,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> InvokeArg<'a> for HRESULT

source§

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

§

type Input = &'a PCWSTR

source§

fn convert(input: &PCWSTR) -> String

source§

impl<'a> InvokeArg<'a> for BOOL

§

type Input = BOOL

source§

fn convert(input: BOOL) -> bool

source§

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

§

type Input = Option<&'a I>

source§

fn convert(input: Option<&I>) -> <Self as ClosureArg>::Output

Implementors§