Enum red4ext_rs::types::TaggedType

source ·
pub enum TaggedType<'a> {
Show 17 variants Name, Fundamental, Class(&'a Class), Array(&'a ArrayType), Simple, Enum(&'a Enum), StaticArray(&'a StaticArrayType), NativeArray(&'a NativeArrayType), Pointer(&'a PointerType), Ref(&'a RefType), WeakRef(&'a WeakRefType), ResourceRef(&'a ResourceRefType), RaRef(&'a RaRefType), BitField(&'a Bitfield), Curve(&'a CurveType), ScriptRef(&'a ScriptRefType), FixedArray(&'a ArrayType),
}
Expand description

Enum representation of the RTTI type.

Variants§

§

Name

A name type.

§

Fundamental

A fundamental type (e.g. Int32).

§

Class(&'a Class)

A class type.

§

Array(&'a ArrayType)

An array type.

§

Simple

A simple type.

§

Enum(&'a Enum)

An enum type.

§

StaticArray(&'a StaticArrayType)

A static array type with a fixed size.

§

NativeArray(&'a NativeArrayType)

A native array type with a fixed size.

§

Pointer(&'a PointerType)

A pointer type.

§

Ref(&'a RefType)

A reference type.

§

WeakRef(&'a WeakRefType)

A weak reference type.

§

ResourceRef(&'a ResourceRefType)

A resource reference type.

§

RaRef(&'a RaRefType)

An asynchronous resource reference type.

§

BitField(&'a Bitfield)

A bitfield type.

§

Curve(&'a CurveType)

A curve type.

§

ScriptRef(&'a ScriptRefType)

A script reference type.

§

FixedArray(&'a ArrayType)

A fixed size array type.

Trait Implementations§

source§

impl<'a> Debug for TaggedType<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for TaggedType<'a>

§

impl<'a> !RefUnwindSafe for TaggedType<'a>

§

impl<'a> !Send for TaggedType<'a>

§

impl<'a> !Sync for TaggedType<'a>

§

impl<'a> Unpin for TaggedType<'a>

§

impl<'a> !UnwindSafe for TaggedType<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.