Trait wrapped_mono::InteropSend
source · pub trait InteropSend {
type TargetType: Copy;
// Required method
fn get_mono_rep(rust_arg: Self) -> Self::TargetType;
}
Expand description
Trait specifying how to convert a type when transferring it between managed and unmanaged code. It specifies how to convert type implementing this trait
to TargetType
used by MonoRuntime
.
Required Associated Types§
sourcetype TargetType: Copy
type TargetType: Copy
Type used by MonoRuntime
, that type implementing InteropSend
trait should be converted to when returning it to MonoRuntime
.
Required Methods§
sourcefn get_mono_rep(rust_arg: Self) -> Self::TargetType
fn get_mono_rep(rust_arg: Self) -> Self::TargetType
Function converting type implementing InteropRecive
trait to type that should be returned to MonoRuntime
.