ForeignTransform

Trait ForeignTransform 

Source
pub trait ForeignTransform {
    // Required methods
    fn decoding_gen(
        &self,
        input_stream: TokenStream,
        arguments: Vec<TokenStream>,
        is_async: bool,
    ) -> TokenStream;
    fn encoding_gen(
        &self,
        input_stream: TokenStream,
        arguments: Vec<TokenStream>,
        is_async: bool,
    ) -> TokenStream;
    fn arguments(&self) -> Vec<FFIArgument>;
}

Required Methods§

Source

fn decoding_gen( &self, input_stream: TokenStream, arguments: Vec<TokenStream>, is_async: bool, ) -> TokenStream

Source

fn encoding_gen( &self, input_stream: TokenStream, arguments: Vec<TokenStream>, is_async: bool, ) -> TokenStream

Source

fn arguments(&self) -> Vec<FFIArgument>

Implementors§