pub unsafe trait Return {
    type Actual;

    fn matches(ty: &Il2CppType) -> bool;
    fn into_actual(self) -> Self::Actual;
    fn from_actual(actual: Self::Actual) -> Self;
}
Expand description

Trait implemented by types that can be used as return types for C# methods

Note

You should most likely not be implementing this trait yourself, but rather the Type trait

Safety

The implementation must be correct

Required Associated Types

Type of the actual return value

Required Methods

Checks whether the type can be used as a C# return type of the given Il2CppType

Converts from the desired type into the actual one

Converts from the actual type to the desired one

Implementations on Foreign Types

Implementors