#[repr(transparent)]
pub struct Il2CppString(_);
Expand description

An il2cpp string

Implementations

Creates a new string from a Rust string

Converts the string to a Rust string, returning an error if its utf-16 data is invalid

Converts the string to a Rust string, replacing any of its invalid data with the replacement character (U+FFFD)

Returns the string’s utf-16 data as a slice

Returns the string’s utf-16 data as a mutable slice

Methods from Deref<Target = Il2CppObject>

Il2CppClass of the object

Invokes the method with the given name on self using the given arguments, with type checking

Panics

This method will panic if a matching method can’t be found.

Invokes the void method with the given name on self using the given arguments, with type checking

Panics

This method will panic if a matching method can’t be found.

Loads a value from a field of self with the given name, with type checking

Panics

This method will panic if the given field can’t be found

Stores a given value into a field of self with the given name, with type checking

Panics

This method will panic if the given field can’t be found

Trait Implementations

Converts this type into a mutable reference of the (usually inferred) input type.

Converts this type into a shared reference of the (usually inferred) input type.

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Type of the values held in variables of the type

Non-generic version of [Held].

Namespace containingthe class the type represents

Name of the class the type represents

Whether a reference to the type can be used as an argument of the given Il2CppType Read more

Whether a value of the type can be used as an argument of the given Il2CppType Read more

Whether a reference to the type can be used as a parameter of the given Il2CppType Read more

Whether a value of the type can be used as a parameter of the given Il2CppType Read more

Il2CppClass of the type

Whether the type can be used as a this argument for the given MethodInfo Read more

Whether the type can be used as a this parameter for the given MethodInfo Read more

Whether the type can be used as the value of the given Il2CppType returned from a C# method Read more

Whether the type can be used as the return value of the given Il2CppType for a C# method Read more

Raw il2cpp type

Returns a reference to the underlying raw il2cpp type

Returns a mutable reference to the underlying raw il2cpp type Read more

Wraps a reference to the raw il2cpp type Read more

Wraps a mutable reference to the raw il2cpp type Read more

Wraps a const pointer to the raw il2cpp type Read more

Wraps a mut pointer to the raw il2cpp type Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.