[][src]Trait intercom_common::returnhandlers::ReturnHandler

pub trait ReturnHandler: Debug {
    fn type_system(&self) -> ModelTypeSystem;
fn rust_ty(&self) -> Type; fn com_ty(&self) -> Type { ... }
fn com_to_rust_return(&self, _result: &Ident) -> TokenStream { ... }
fn rust_to_com_return(&self, _result: &Ident) -> TokenStream { ... }
fn com_out_args(&self) -> Vec<ComArg> { ... } }

Defines return handler for handling various different return type schemes.

Required methods

fn type_system(&self) -> ModelTypeSystem

Returns the current type system. Used internally by the trait.

fn rust_ty(&self) -> Type

The return type of the original Rust method.

Loading content...

Provided methods

fn com_ty(&self) -> Type

The return type for COM implementation.

fn com_to_rust_return(&self, _result: &Ident) -> TokenStream

Gets the return statement for converting the COM result into Rust return.

fn rust_to_com_return(&self, _result: &Ident) -> TokenStream

Gets the return statement for converting the Rust result into COM outputs.

fn com_out_args(&self) -> Vec<ComArg>

Gets the COM out arguments that result from the Rust return type.

Loading content...

Implementors

Loading content...