Trait wrapped_mono::InteropRecive
source · pub trait InteropRecive {
type SourceType: Copy;
// Required method
fn get_rust_rep(mono_arg: Self::SourceType) -> Self;
}
Expand description
Trait specifying how to convert a type when transferring it between managed and unmanaged code. It specifies how to convert
SourceType
used by MonoRuntime
to type implementing this trait.
Required Associated Types§
sourcetype SourceType: Copy
type SourceType: Copy
Souce type used by MonoRuntime
when calling functions exposed by add_internal_call
, or getting a value back from a method, that can be converted to a rust type.
Required Methods§
sourcefn get_rust_rep(mono_arg: Self::SourceType) -> Self
fn get_rust_rep(mono_arg: Self::SourceType) -> Self
Function converting Self::SourceType
to type implementing InteropRecive
trait.