pub struct ValueCheck {
pub matches: fn(TypeInfo) -> bool,
pub name: &'static str,
pub reference: bool,
}Expand description
How a Rust type is checked against a managed parameter or return type.
Fields§
§matches: fn(TypeInfo) -> boolIl2CppValue::matches of the Rust type.
name: &'static strThe Rust type’s name, for error messages.
reference: boolWhether the Rust type is an object pointer, so it can be the instance (this).
Implementations§
Source§impl ValueCheck
impl ValueCheck
Sourcepub fn of<T: Il2CppValue>() -> Self
pub fn of<T: Il2CppValue>() -> Self
The check for the Rust type T.
Trait Implementations§
Source§impl Clone for ValueCheck
impl Clone for ValueCheck
impl Copy for ValueCheck
Auto Trait Implementations§
impl Forget for ValueCheck
impl Freeze for ValueCheck
impl Move for ValueCheck
impl RefUnwindSafe for ValueCheck
impl Send for ValueCheck
impl Sync for ValueCheck
impl Unpin for ValueCheck
impl UnsafeUnpin for ValueCheckwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for ValueCheckwhere
&'static str: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more