pub struct TypeInfo {
pub element: i32,
pub value_type: bool,
pub is_enum: bool,
pub byref: bool,
pub namespace: &'static str,
pub name: &'static str,
}Expand description
The managed type of a parameter or return value.
Fields§
§element: i32The Il2CppTypeEnum value. For enums, the element type of the underlying integer.
value_type: bool§is_enum: bool§byref: bool§namespace: &'static str§name: &'static strImplementations§
Source§impl TypeInfo
impl TypeInfo
Sourcepub fn is_value_type(&self, namespace: &str, name: &str) -> bool
pub fn is_value_type(&self, namespace: &str, name: &str) -> bool
Whether this is the value type namespace.name, passed by value. For
Il2CppValue impls of #[repr(C)] structs mirroring a managed struct.
Trait Implementations§
impl Copy for TypeInfo
impl Eq for TypeInfo
impl StructuralPartialEq for TypeInfo
Auto Trait Implementations§
impl Forget for TypeInfo
impl Freeze for TypeInfo
impl Move for TypeInfo
impl RefUnwindSafe for TypeInfo
impl Send for TypeInfo
impl Sync for TypeInfo
impl Unpin for TypeInfo
impl UnsafeUnpin for TypeInfo
impl UnwindSafe for TypeInfo
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