pub unsafe trait Returned {
    type Type: Any;

    fn matches(ty: &Il2CppType) -> bool;
    fn from_object(object: Option<&mut Il2CppObject>) -> Self;
}
Expand description

Trait implemented by types that can be used as return types from 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

Normalized type of the return type, useful for caching

Required Methods

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

Converts the Il2CppObject returned by runtime_invoke into self

Implementations on Foreign Types

Implementors