pub unsafe trait Parameter {
    type Actual;

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

Trait implemented by types that can be used as C# method parameters

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 parameter

Required Methods

Checks whether the type can be used as a C# parameter with the given Il2CppType

Converts from the actual type to the desired one

Converts from the desired type into the actual one

Implementations on Foreign Types

Implementors