pub trait IEnumMethods: IEnum {
// Provided methods
fn get_value(self) -> Object { ... }
fn internal_has_flag(self, flags: impl Into<Enum>) -> bool { ... }
fn get_hashcode(self) -> i32 { ... }
fn equals(self, obj: impl Into<Object>) -> bool { ... }
fn get_hash_code(self) -> i32 { ... }
fn to_string(self) -> Il2CppString { ... }
fn compare_to(self, target: impl Into<Object>) -> i32 { ... }
fn to_string_2(self, format: impl Into<Il2CppString>) -> Il2CppString { ... }
fn has_flag(self, flag: impl Into<Enum>) -> bool { ... }
fn ctor(self) { ... }
}Provided Methods§
Sourcefn internal_has_flag(self, flags: impl Into<Enum>) -> bool
fn internal_has_flag(self, flags: impl Into<Enum>) -> bool
InternalHasFlag(crate::system::r#enum::Enum) overload
Sourcefn get_hashcode(self) -> i32
fn get_hashcode(self) -> i32
get_hashcode() overload
Sourcefn get_hash_code(self) -> i32
fn get_hash_code(self) -> i32
GetHashCode() overload
Sourcefn to_string(self) -> Il2CppString
fn to_string(self) -> Il2CppString
ToString() overload
Sourcefn compare_to(self, target: impl Into<Object>) -> i32
fn compare_to(self, target: impl Into<Object>) -> i32
CompareTo(crate::system::object::Object) overload
Sourcefn to_string_2(self, format: impl Into<Il2CppString>) -> Il2CppString
fn to_string_2(self, format: impl Into<Il2CppString>) -> Il2CppString
ToString(::unity::Il2CppString) 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: IEnum> IEnumMethods for __T
Available on crate feature
system-enum only.