Enum fyrox_core::visitor::FieldKind

source ·
pub enum FieldKind {
Show 49 variants Bool(bool), U8(u8), I8(i8), U16(u16), I16(i16), U32(u32), I32(i32), U64(u64), I64(i64), F32(f32), F64(f64), UnitQuaternion(UnitQuaternion<f32>), Matrix4(Matrix4<f32>), BinaryBlob(Vec<u8>), Matrix3(Matrix3<f32>), Uuid(Uuid), UnitComplex(UnitComplex<f32>), PodArray { type_id: u8, element_size: u32, bytes: Vec<u8>, }, Matrix2(Matrix2<f32>), Vector2F32(Vector2<f32>), Vector3F32(Vector3<f32>), Vector4F32(Vector4<f32>), Vector2F64(Vector2<f64>), Vector3F64(Vector3<f64>), Vector4F64(Vector4<f64>), Vector2U8(Vector2<u8>), Vector3U8(Vector3<u8>), Vector4U8(Vector4<u8>), Vector2I8(Vector2<i8>), Vector3I8(Vector3<i8>), Vector4I8(Vector4<i8>), Vector2U16(Vector2<u16>), Vector3U16(Vector3<u16>), Vector4U16(Vector4<u16>), Vector2I16(Vector2<i16>), Vector3I16(Vector3<i16>), Vector4I16(Vector4<i16>), Vector2U32(Vector2<u32>), Vector3U32(Vector3<u32>), Vector4U32(Vector4<u32>), Vector2I32(Vector2<i32>), Vector3I32(Vector3<i32>), Vector4I32(Vector4<i32>), Vector2U64(Vector2<u64>), Vector3U64(Vector3<u64>), Vector4U64(Vector4<u64>), Vector2I64(Vector2<i64>), Vector3I64(Vector3<i64>), Vector4I64(Vector4<i64>),
}
Expand description

The internal data format of Visitor. Fields are limited to being one of these types. This means that all Visit values must be built from some assortment of these types. Fields can be accessed from a visitor using Visit::visit on a variable with the same type as the field.

Variants§

§

Bool(bool)

§

U8(u8)

§

I8(i8)

§

U16(u16)

§

I16(i16)

§

U32(u32)

§

I32(i32)

§

U64(u64)

§

I64(i64)

§

F32(f32)

§

F64(f64)

§

UnitQuaternion(UnitQuaternion<f32>)

§

Matrix4(Matrix4<f32>)

§

BinaryBlob(Vec<u8>)

A representation of some Vec<T> where T must be Copy. It is mostly used to store the bytes of string types.

§

Matrix3(Matrix3<f32>)

§

Uuid(Uuid)

§

UnitComplex(UnitComplex<f32>)

§

PodArray

A representation for arrays of Pod types as a Vec<u8>.

Fields

§type_id: u8

A code to identify the Pod type of the elements of the array. Taken from Pod::type_id.

§element_size: u32

The number of bytes in each array element.

§bytes: Vec<u8>

The bytes that store the data, with unspecified endianness.

§

Matrix2(Matrix2<f32>)

§

Vector2F32(Vector2<f32>)

§

Vector3F32(Vector3<f32>)

§

Vector4F32(Vector4<f32>)

§

Vector2F64(Vector2<f64>)

§

Vector3F64(Vector3<f64>)

§

Vector4F64(Vector4<f64>)

§

Vector2U8(Vector2<u8>)

§

Vector3U8(Vector3<u8>)

§

Vector4U8(Vector4<u8>)

§

Vector2I8(Vector2<i8>)

§

Vector3I8(Vector3<i8>)

§

Vector4I8(Vector4<i8>)

§

Vector2U16(Vector2<u16>)

§

Vector3U16(Vector3<u16>)

§

Vector4U16(Vector4<u16>)

§

Vector2I16(Vector2<i16>)

§

Vector3I16(Vector3<i16>)

§

Vector4I16(Vector4<i16>)

§

Vector2U32(Vector2<u32>)

§

Vector3U32(Vector3<u32>)

§

Vector4U32(Vector4<u32>)

§

Vector2I32(Vector2<i32>)

§

Vector3I32(Vector3<i32>)

§

Vector4I32(Vector4<i32>)

§

Vector2U64(Vector2<u64>)

§

Vector3U64(Vector3<u64>)

§

Vector4U64(Vector4<u64>)

§

Vector2I64(Vector2<i64>)

§

Vector3I64(Vector3<i64>)

§

Vector4I64(Vector4<i64>)

Auto Trait Implementations§

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> AsyncTaskResult for T
where T: Any + Send + 'static,

source§

fn into_any(self: Box<T>) -> Box<dyn Any>

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> FieldValue for T
where T: 'static,

source§

fn as_any(&self) -> &(dyn Any + 'static)

Casts self to a &dyn Any
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> Same for T

§

type Output = T

Should always be Self
source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V