unity::il2cpp::class

Trait Il2CppClassData

source
pub trait Il2CppClassData {
    const NAMESPACE: &'static str;
    const CLASS: &'static str;

    // Required methods
    fn class() -> &'static Il2CppClass;
    fn class_mut() -> &'static mut Il2CppClass;

    // Provided methods
    fn instantiate() -> Il2CppResult<&'static mut Self>
       where Self: Sized { ... }
    fn instantiate_as<T: 'static>() -> Il2CppResult<&'static mut T> { ... }
}

Required Associated Constants§

source

const NAMESPACE: &'static str

source

const CLASS: &'static str

Required Methods§

source

fn class() -> &'static Il2CppClass

source

fn class_mut() -> &'static mut Il2CppClass

Provided Methods§

source

fn instantiate() -> Il2CppResult<&'static mut Self>
where Self: Sized,

source

fn instantiate_as<T: 'static>() -> Il2CppResult<&'static mut T>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Il2CppClassData for u8

source§

const NAMESPACE: &'static str = "System"

source§

const CLASS: &'static str = "Byte"

source§

fn class() -> &'static Il2CppClass

source§

fn class_mut() -> &'static mut Il2CppClass

Implementors§

source§

impl Il2CppClassData for Il2CppString

source§

const NAMESPACE: &'static str = "System"

source§

const CLASS: &'static str = "String"