Skip to main content

IMemberInfoMethods

Trait IMemberInfoMethods 

Source
pub trait IMemberInfoMethods: IMemberInfo {
Show 13 methods // Provided methods fn ctor(self) { ... } fn get_member_type(self) -> MemberTypes { ... } fn get_name(self) -> Il2CppString { ... } fn get_declaring_type(self) -> SystemType { ... } fn get_reflected_type(self) -> SystemType { ... } fn get_custom_attributes(self, inherit: impl Into<bool>) -> Array<Object> { ... } fn get_custom_attributes_2( self, attribute_type: impl Into<SystemType>, inherit: impl Into<bool>, ) -> Array<Object> { ... } fn is_defined( self, attribute_type: impl Into<SystemType>, inherit: impl Into<bool>, ) -> bool { ... } fn get_custom_attributes_data( self, ) -> IList_1_Interface<CustomAttributeData> { ... } fn get_metadata_token(self) -> i32 { ... } fn get_module(self) -> Module { ... } fn equals(self, obj: impl Into<Object>) -> bool { ... } fn get_hash_code(self) -> i32 { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn get_member_type(self) -> MemberTypes

get_MemberType() overload

Source

fn get_name(self) -> Il2CppString

get_Name() overload

Source

fn get_declaring_type(self) -> SystemType

get_DeclaringType() overload

Source

fn get_reflected_type(self) -> SystemType

get_ReflectedType() overload

Source

fn get_custom_attributes(self, inherit: impl Into<bool>) -> Array<Object>

GetCustomAttributes(bool) overload

Source

fn get_custom_attributes_2( self, attribute_type: impl Into<SystemType>, inherit: impl Into<bool>, ) -> Array<Object>

GetCustomAttributes(::unity::SystemType, bool) overload

Source

fn is_defined( self, attribute_type: impl Into<SystemType>, inherit: impl Into<bool>, ) -> bool

IsDefined(::unity::SystemType, bool) overload

Source

fn get_custom_attributes_data(self) -> IList_1_Interface<CustomAttributeData>

GetCustomAttributesData() overload

Source

fn get_metadata_token(self) -> i32

get_MetadataToken() overload

Source

fn get_module(self) -> Module

get_Module() overload

Source

fn equals(self, obj: impl Into<Object>) -> bool

Equals(crate::system::object::Object) overload

Source

fn get_hash_code(self) -> i32

GetHashCode() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IMemberInfo> IMemberInfoMethods for __T

Available on crate feature system-reflection-memberinfo only.