Skip to main content

ITypeBuilderMethods

Trait ITypeBuilderMethods 

Source
pub trait ITypeBuilderMethods: ITypeBuilder {
Show 33 methods // Provided methods fn get_assembly(self) -> Assembly { ... } fn get_assembly_qualified_name(self) -> Il2CppString { ... } fn get_base_type(self) -> SystemType { ... } fn get_full_name(self) -> Il2CppString { ... } fn get_module(self) -> Module { ... } fn get_name(self) -> Il2CppString { ... } fn get_namespace(self) -> Il2CppString { ... } fn get_element_type(self) -> SystemType { ... } fn get_underlying_system_type(self) -> SystemType { ... } fn get_attribute_flags_impl(self) -> TypeAttributes { ... } fn get_constructor_impl( self, binding_attr: impl Into<BindingFlags>, binder: impl Into<Binder>, call_convention: impl Into<CallingConventions>, types: impl Into<Array<SystemType>>, modifiers: impl Into<Array<ParameterModifier>>, ) -> ConstructorInfo { ... } fn get_constructors( self, binding_attr: impl Into<BindingFlags>, ) -> Array<ConstructorInfo> { ... } 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 get_event( self, name: impl Into<Il2CppString>, binding_attr: impl Into<BindingFlags>, ) -> EventInfo { ... } fn get_events( self, binding_attr: impl Into<BindingFlags>, ) -> Array<EventInfo> { ... } fn get_field( self, name: impl Into<Il2CppString>, binding_attr: impl Into<BindingFlags>, ) -> FieldInfo { ... } fn get_fields( self, binding_attr: impl Into<BindingFlags>, ) -> Array<FieldInfo> { ... } fn get_interface( self, name: impl Into<Il2CppString>, ignore_case: impl Into<bool>, ) -> SystemType { ... } fn get_interfaces(self) -> Array<SystemType> { ... } fn get_method_impl( self, name: impl Into<Il2CppString>, binding_attr: impl Into<BindingFlags>, binder: impl Into<Binder>, call_convention: impl Into<CallingConventions>, types: impl Into<Array<SystemType>>, modifiers: impl Into<Array<ParameterModifier>>, ) -> MethodInfo { ... } fn get_methods( self, binding_attr: impl Into<BindingFlags>, ) -> Array<MethodInfo> { ... } fn get_nested_type( self, name: impl Into<Il2CppString>, binding_attr: impl Into<BindingFlags>, ) -> SystemType { ... } fn get_nested_types( self, binding_attr: impl Into<BindingFlags>, ) -> Array<SystemType> { ... } fn get_properties( self, binding_attr: impl Into<BindingFlags>, ) -> Array<PropertyInfo> { ... } fn get_property_impl( self, name: impl Into<Il2CppString>, binding_attr: impl Into<BindingFlags>, binder: impl Into<Binder>, return_type: impl Into<SystemType>, types: impl Into<Array<SystemType>>, modifiers: impl Into<Array<ParameterModifier>>, ) -> PropertyInfo { ... } fn has_element_type_impl(self) -> bool { ... } fn is_array_impl(self) -> bool { ... } fn is_by_ref_impl(self) -> bool { ... } fn is_com_object_impl(self) -> bool { ... } fn is_defined( self, attribute_type: impl Into<SystemType>, inherit: impl Into<bool>, ) -> bool { ... } fn is_pointer_impl(self) -> bool { ... } fn is_primitive_impl(self) -> bool { ... }
}

Provided Methods§

Source

fn get_assembly(self) -> Assembly

get_Assembly() overload

Source

fn get_assembly_qualified_name(self) -> Il2CppString

get_AssemblyQualifiedName() overload

Source

fn get_base_type(self) -> SystemType

get_BaseType() overload

Source

fn get_full_name(self) -> Il2CppString

get_FullName() overload

Source

fn get_module(self) -> Module

get_Module() overload

Source

fn get_name(self) -> Il2CppString

get_Name() overload

Source

fn get_namespace(self) -> Il2CppString

get_Namespace() overload

Source

fn get_element_type(self) -> SystemType

GetElementType() overload

Source

fn get_underlying_system_type(self) -> SystemType

get_UnderlyingSystemType() overload

Source

fn get_attribute_flags_impl(self) -> TypeAttributes

GetAttributeFlagsImpl() overload

Source

fn get_constructor_impl( self, binding_attr: impl Into<BindingFlags>, binder: impl Into<Binder>, call_convention: impl Into<CallingConventions>, types: impl Into<Array<SystemType>>, modifiers: impl Into<Array<ParameterModifier>>, ) -> ConstructorInfo

GetConstructorImpl(crate::system::reflection::bindingflags::BindingFlags, crate::system::reflection::binder::Binder, crate::system::reflection::callingconventions::CallingConventions, ::unity::Array<::unity::SystemType>, ::unity::Array<crate::system::reflection::parametermodifier::ParameterModifier>) overload

Source

fn get_constructors( self, binding_attr: impl Into<BindingFlags>, ) -> Array<ConstructorInfo>

GetConstructors(crate::system::reflection::bindingflags::BindingFlags) 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 get_event( self, name: impl Into<Il2CppString>, binding_attr: impl Into<BindingFlags>, ) -> EventInfo

GetEvent(::unity::Il2CppString, crate::system::reflection::bindingflags::BindingFlags) overload

Source

fn get_events(self, binding_attr: impl Into<BindingFlags>) -> Array<EventInfo>

GetEvents(crate::system::reflection::bindingflags::BindingFlags) overload

Source

fn get_field( self, name: impl Into<Il2CppString>, binding_attr: impl Into<BindingFlags>, ) -> FieldInfo

GetField(::unity::Il2CppString, crate::system::reflection::bindingflags::BindingFlags) overload

Source

fn get_fields(self, binding_attr: impl Into<BindingFlags>) -> Array<FieldInfo>

GetFields(crate::system::reflection::bindingflags::BindingFlags) overload

Source

fn get_interface( self, name: impl Into<Il2CppString>, ignore_case: impl Into<bool>, ) -> SystemType

GetInterface(::unity::Il2CppString, bool) overload

Source

fn get_interfaces(self) -> Array<SystemType>

GetInterfaces() overload

Source

fn get_method_impl( self, name: impl Into<Il2CppString>, binding_attr: impl Into<BindingFlags>, binder: impl Into<Binder>, call_convention: impl Into<CallingConventions>, types: impl Into<Array<SystemType>>, modifiers: impl Into<Array<ParameterModifier>>, ) -> MethodInfo

GetMethodImpl(::unity::Il2CppString, crate::system::reflection::bindingflags::BindingFlags, crate::system::reflection::binder::Binder, crate::system::reflection::callingconventions::CallingConventions, ::unity::Array<::unity::SystemType>, ::unity::Array<crate::system::reflection::parametermodifier::ParameterModifier>) overload

Source

fn get_methods(self, binding_attr: impl Into<BindingFlags>) -> Array<MethodInfo>

GetMethods(crate::system::reflection::bindingflags::BindingFlags) overload

Source

fn get_nested_type( self, name: impl Into<Il2CppString>, binding_attr: impl Into<BindingFlags>, ) -> SystemType

GetNestedType(::unity::Il2CppString, crate::system::reflection::bindingflags::BindingFlags) overload

Source

fn get_nested_types( self, binding_attr: impl Into<BindingFlags>, ) -> Array<SystemType>

GetNestedTypes(crate::system::reflection::bindingflags::BindingFlags) overload

Source

fn get_properties( self, binding_attr: impl Into<BindingFlags>, ) -> Array<PropertyInfo>

GetProperties(crate::system::reflection::bindingflags::BindingFlags) overload

Source

fn get_property_impl( self, name: impl Into<Il2CppString>, binding_attr: impl Into<BindingFlags>, binder: impl Into<Binder>, return_type: impl Into<SystemType>, types: impl Into<Array<SystemType>>, modifiers: impl Into<Array<ParameterModifier>>, ) -> PropertyInfo

GetPropertyImpl(::unity::Il2CppString, crate::system::reflection::bindingflags::BindingFlags, crate::system::reflection::binder::Binder, ::unity::SystemType, ::unity::Array<::unity::SystemType>, ::unity::Array<crate::system::reflection::parametermodifier::ParameterModifier>) overload

Source

fn has_element_type_impl(self) -> bool

HasElementTypeImpl() overload

Source

fn is_array_impl(self) -> bool

IsArrayImpl() overload

Source

fn is_by_ref_impl(self) -> bool

IsByRefImpl() overload

Source

fn is_com_object_impl(self) -> bool

IsCOMObjectImpl() overload

Source

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

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

Source

fn is_pointer_impl(self) -> bool

IsPointerImpl() overload

Source

fn is_primitive_impl(self) -> bool

IsPrimitiveImpl() 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: ITypeBuilder> ITypeBuilderMethods for __T

Available on crate feature system-reflection-emit-typebuilder only.