pub trait IMonoFieldMethods: IMonoField {
Show 18 methods
// Provided methods
fn get_attributes(self) -> FieldAttributes { ... }
fn resolve_type(self) -> SystemType { ... }
fn get_field_type(self) -> SystemType { ... }
fn get_parent_type(self, declaring: impl Into<bool>) -> SystemType { ... }
fn get_reflected_type(self) -> SystemType { ... }
fn get_declaring_type(self) -> SystemType { ... }
fn get_name(self) -> Il2CppString { ... }
fn is_defined(
self,
attribute_type: impl Into<SystemType>,
inherit: impl Into<bool>,
) -> bool { ... }
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_field_offset(self) -> i32 { ... }
fn get_value_internal(self, obj: impl Into<Object>) -> Object { ... }
fn get_value(self, obj: impl Into<Object>) -> Object { ... }
fn to_string(self) -> Il2CppString { ... }
fn get_raw_constant_value(self) -> Object { ... }
fn get_custom_attributes_data(
self,
) -> IList_1_Interface<CustomAttributeData> { ... }
fn check_generic(self) { ... }
fn ctor(self) { ... }
}Provided Methods§
Sourcefn get_attributes(self) -> FieldAttributes
fn get_attributes(self) -> FieldAttributes
get_Attributes() overload
Sourcefn resolve_type(self) -> SystemType
fn resolve_type(self) -> SystemType
ResolveType() overload
Sourcefn get_field_type(self) -> SystemType
fn get_field_type(self) -> SystemType
get_FieldType() overload
Sourcefn get_parent_type(self, declaring: impl Into<bool>) -> SystemType
fn get_parent_type(self, declaring: impl Into<bool>) -> SystemType
GetParentType(bool) overload
Sourcefn get_reflected_type(self) -> SystemType
fn get_reflected_type(self) -> SystemType
get_ReflectedType() overload
Sourcefn get_declaring_type(self) -> SystemType
fn get_declaring_type(self) -> SystemType
get_DeclaringType() overload
Sourcefn get_name(self) -> Il2CppString
fn get_name(self) -> Il2CppString
get_Name() overload
Sourcefn is_defined(
self,
attribute_type: impl Into<SystemType>,
inherit: impl Into<bool>,
) -> bool
fn is_defined( self, attribute_type: impl Into<SystemType>, inherit: impl Into<bool>, ) -> bool
IsDefined(::unity::SystemType, bool) overload
Sourcefn get_custom_attributes(self, inherit: impl Into<bool>) -> Array<Object>
fn get_custom_attributes(self, inherit: impl Into<bool>) -> Array<Object>
GetCustomAttributes(bool) overload
Sourcefn get_custom_attributes_2(
self,
attribute_type: impl Into<SystemType>,
inherit: impl Into<bool>,
) -> Array<Object>
fn get_custom_attributes_2( self, attribute_type: impl Into<SystemType>, inherit: impl Into<bool>, ) -> Array<Object>
GetCustomAttributes(::unity::SystemType, bool) overload
Sourcefn get_field_offset(self) -> i32
fn get_field_offset(self) -> i32
GetFieldOffset() overload
Sourcefn get_value_internal(self, obj: impl Into<Object>) -> Object
fn get_value_internal(self, obj: impl Into<Object>) -> Object
GetValueInternal(crate::system::object::Object) overload
Sourcefn get_value(self, obj: impl Into<Object>) -> Object
fn get_value(self, obj: impl Into<Object>) -> Object
GetValue(crate::system::object::Object) overload
Sourcefn to_string(self) -> Il2CppString
fn to_string(self) -> Il2CppString
ToString() overload
Sourcefn get_raw_constant_value(self) -> Object
fn get_raw_constant_value(self) -> Object
GetRawConstantValue() overload
Sourcefn get_custom_attributes_data(self) -> IList_1_Interface<CustomAttributeData>
fn get_custom_attributes_data(self) -> IList_1_Interface<CustomAttributeData>
GetCustomAttributesData() overload
Sourcefn check_generic(self)
fn check_generic(self)
CheckGeneric() 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: IMonoField> IMonoFieldMethods for __T
Available on crate feature
system-reflection-monofield only.