pub trait IMethodInfoMethods: IMethodInfo {
// Provided methods
fn ctor(self) { ... }
fn equals(self, obj: impl Into<Object>) -> bool { ... }
fn get_hash_code(self) -> i32 { ... }
fn get_member_type(self) -> MemberTypes { ... }
fn get_return_type(self) -> SystemType { ... }
fn get_generic_arguments(self) -> Array<SystemType> { ... }
fn get_generic_method_definition(self) -> MethodInfo { ... }
fn make_generic_method(
self,
type_arguments: impl Into<Array<SystemType>>,
) -> MethodInfo { ... }
fn create_delegate(self, delegate_type: impl Into<SystemType>) -> Delegate { ... }
fn create_delegate_2(
self,
delegate_type: impl Into<SystemType>,
target: impl Into<Object>,
) -> Delegate { ... }
fn get_base_method(self) -> MethodInfo { ... }
}Provided Methods§
Sourcefn get_hash_code(self) -> i32
fn get_hash_code(self) -> i32
GetHashCode() overload
Sourcefn get_member_type(self) -> MemberTypes
fn get_member_type(self) -> MemberTypes
get_MemberType() overload
Sourcefn get_return_type(self) -> SystemType
fn get_return_type(self) -> SystemType
get_ReturnType() overload
Sourcefn get_generic_arguments(self) -> Array<SystemType>
fn get_generic_arguments(self) -> Array<SystemType>
GetGenericArguments() overload
Sourcefn get_generic_method_definition(self) -> MethodInfo
fn get_generic_method_definition(self) -> MethodInfo
GetGenericMethodDefinition() overload
Sourcefn make_generic_method(
self,
type_arguments: impl Into<Array<SystemType>>,
) -> MethodInfo
fn make_generic_method( self, type_arguments: impl Into<Array<SystemType>>, ) -> MethodInfo
MakeGenericMethod(::unity::Array<::unity::SystemType>) overload
Sourcefn create_delegate(self, delegate_type: impl Into<SystemType>) -> Delegate
fn create_delegate(self, delegate_type: impl Into<SystemType>) -> Delegate
CreateDelegate(::unity::SystemType) overload
Sourcefn create_delegate_2(
self,
delegate_type: impl Into<SystemType>,
target: impl Into<Object>,
) -> Delegate
fn create_delegate_2( self, delegate_type: impl Into<SystemType>, target: impl Into<Object>, ) -> Delegate
CreateDelegate(::unity::SystemType, crate::system::object::Object) overload
Sourcefn get_base_method(self) -> MethodInfo
fn get_base_method(self) -> MethodInfo
GetBaseMethod() 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§
impl<__T: IMethodInfo> IMethodInfoMethods for __T
Available on crate feature
system-reflection-methodinfo only.