Skip to main content

IEnumMethods

Trait IEnumMethods 

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

Source

fn get_value(self) -> Object

get_value() overload

Source

fn internal_has_flag(self, flags: impl Into<Enum>) -> bool

InternalHasFlag(crate::system::r#enum::Enum) overload

Source

fn get_hashcode(self) -> i32

get_hashcode() 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 to_string(self) -> Il2CppString

ToString() overload

Source

fn compare_to(self, target: impl Into<Object>) -> i32

CompareTo(crate::system::object::Object) overload

Source

fn to_string_2(self, format: impl Into<Il2CppString>) -> Il2CppString

ToString(::unity::Il2CppString) overload

Source

fn has_flag(self, flag: impl Into<Enum>) -> bool

HasFlag(crate::system::r#enum::Enum) overload

Source

fn ctor(self)

.ctor() 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: IEnum> IEnumMethods for __T

Available on crate feature system-enum only.