#[cfg(feature = "allocator")]
use core::fmt::Display;
#[repr(u16)]
#[derive(Debug, Clone, Copy)]
pub enum MtType {
Undefined = 0,
Class,
ClassRef,
Bool,
U8,
U16,
U32,
U64,
S8,
S16,
S32,
S64,
F32,
F64,
String,
Color,
Point,
Size,
Rect,
Matrix,
Vector3,
Vector4,
Quaternion,
Property,
Event,
Group,
PageBegin,
PageEnd,
Event32,
Array,
PropertyList,
GroupEnd,
CString,
Time,
Float2,
Float3,
Float4,
Float3x3,
Float4x3,
Float4x4,
Easecurve,
Line,
LineSegment,
Ray,
Plane,
Sphere,
Capsule,
Aabb,
Obb,
Cylinder,
Triangle,
Cone,
Torus,
Ellipsoid,
Range,
RangeF,
RangeU16,
Hermitecurve,
EnumList,
Float3x4,
LineSegment4,
Aabb4,
Oscillator,
Variable,
Vector2,
Matrix33,
Rect3dXz,
Rect3d,
Rect3dCollision,
PlaneXz,
RayY,
PointF,
SizeF,
RectF,
Event64,
Count,
Custom = 0x80,
}
#[cfg(feature = "allocator")]
impl Display for MtType {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "{}", alloc::format!("{:?}", self).to_lowercase())
}
}