Skip to main content

IMethodInfoMethods

Trait IMethodInfoMethods 

Source
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§

Source

fn ctor(self)

.ctor() 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

Source

fn get_member_type(self) -> MemberTypes

get_MemberType() overload

Source

fn get_return_type(self) -> SystemType

get_ReturnType() overload

Source

fn get_generic_arguments(self) -> Array<SystemType>

GetGenericArguments() overload

Source

fn get_generic_method_definition(self) -> MethodInfo

GetGenericMethodDefinition() overload

Source

fn make_generic_method( self, type_arguments: impl Into<Array<SystemType>>, ) -> MethodInfo

MakeGenericMethod(::unity::Array<::unity::SystemType>) overload

Source

fn create_delegate(self, delegate_type: impl Into<SystemType>) -> Delegate

CreateDelegate(::unity::SystemType) overload

Source

fn create_delegate_2( self, delegate_type: impl Into<SystemType>, target: impl Into<Object>, ) -> Delegate

CreateDelegate(::unity::SystemType, crate::system::object::Object) overload

Source

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§

Source§

impl<__T: IMethodInfo> IMethodInfoMethods for __T

Available on crate feature system-reflection-methodinfo only.