pub unsafe trait ThisArgument {
    type Type: Any;

    fn matches(method: &MethodInfo) -> bool;
    fn invokable(&mut self) -> *mut c_void;
}
Expand description

Trait implemented by types that can be used as a C# this arguments

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 this, useful for caching

Required Methods

Checks whether the type can be used as a C# this argument for the given MethodInfo

Returns an untyped pointer which can be used as a libill2cpp this argument

Implementations on Foreign Types

Implementors