pub unsafe trait Il2CppValue: Copy + 'static {
// Required method
fn matches(ty: TypeInfo) -> bool;
// Provided methods
fn describe() -> &'static str { ... }
fn is_reference() -> bool { ... }
}Expand description
A Rust type that has the same representation as some managed types when passed to and from compiled Il2Cpp code.
§Safety
matches may only accept managed types whose values are passed exactly like Self.
Required Methods§
Provided Methods§
Sourcefn is_reference() -> bool
fn is_reference() -> bool
Whether this is a pointer to an object, so it can be the instance (this).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl Il2CppValue for *mut c_void
ref/out parameters and pointers.
impl Il2CppValue for *mut c_void
ref/out parameters and pointers.