Skip to main content

ICustomAttributeDataMethods

Trait ICustomAttributeDataMethods 

Source
pub trait ICustomAttributeDataMethods: ICustomAttributeData {
    // Provided methods
    fn ctor(self) { ... }
    fn ctor_2(
        self,
        ctor_info: impl Into<ConstructorInfo>,
        assembly: impl Into<Assembly>,
        data: impl Into<IntPtr>,
        data_length: impl Into<u32>,
    ) { ... }
    fn resolve_arguments(self) { ... }
    fn get_constructor(self) -> ConstructorInfo { ... }
    fn get_constructor_arguments(
        self,
    ) -> IList_1_Interface<CustomAttributeTypedArgument> { ... }
    fn get_named_arguments(
        self,
    ) -> IList_1_Interface<CustomAttributeNamedArgument> { ... }
    fn get_attribute_type(self) -> SystemType { ... }
    fn to_string(self) -> Il2CppString { ... }
    fn equals(self, obj: impl Into<Object>) -> bool { ... }
    fn get_hash_code(self) -> i32 { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn ctor_2( self, ctor_info: impl Into<ConstructorInfo>, assembly: impl Into<Assembly>, data: impl Into<IntPtr>, data_length: impl Into<u32>, )

.ctor(crate::system::reflection::constructorinfo::ConstructorInfo, crate::system::reflection::assembly::Assembly, ::unity::IntPtr, u32) overload

Source

fn resolve_arguments(self)

ResolveArguments() overload

Source

fn get_constructor(self) -> ConstructorInfo

get_Constructor() overload

Source

fn get_constructor_arguments( self, ) -> IList_1_Interface<CustomAttributeTypedArgument>

get_ConstructorArguments() overload

Source

fn get_named_arguments(self) -> IList_1_Interface<CustomAttributeNamedArgument>

get_NamedArguments() overload

Source

fn get_attribute_type(self) -> SystemType

get_AttributeType() overload

Source

fn to_string(self) -> Il2CppString

ToString() 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: ICustomAttributeData> ICustomAttributeDataMethods for __T

Available on crate feature system-reflection-customattributedata only.