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: u8A code to identify the Pod type of the elements of the array. Taken from Pod::type_id.
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§
impl Freeze for FieldKind
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKind
impl Unpin for FieldKind
impl UnwindSafe for FieldKind
Blanket Implementations§
source§impl<T> AsyncTaskResult for T
impl<T> AsyncTaskResult for T
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> FieldValue for Twhere
T: 'static,
impl<T> FieldValue for Twhere
T: 'static,
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.