Enum VariantDataType
#[repr(i32)]pub enum VariantDataType {
Show 16 variants
Float = 0,
Int = 1,
Bool = 2,
Color = 3,
Vector2 = 4,
Vector3 = 5,
Vector4 = 6,
Matrix3x3 = 7,
Matrix4x4 = 8,
String = 9,
Pointer = 10,
ResourceID = 11,
Resource = 12,
SRTValue2D = 13,
SRTValue3D = 14,
Quaternion = 15,
}Expand description
Specifies the data types that can be stored as variants.
Variants§
Float = 0
Float data.
Int = 1
Integer data.
Bool = 2
Boolean data.
Color = 3
ColorRGBA data.
Vector2 = 4
Vector2 data.
Vector3 = 5
Vector3 data.
Vector4 = 6
Vector4 data.
Matrix3x3 = 7
Matrix3x3 data.
Matrix4x4 = 8
Matrix4x4 data.
String = 9
String data.
Pointer = 10
Pointer data.
ResourceID = 11
ResourceID data.
Resource = 12
Resource data.
SRTValue2D = 13
SRTValue2D data.
SRTValue3D = 14
SRTValue3D data.
Quaternion = 15
Quaternion data.
Implementations§
§impl VariantDataType
impl VariantDataType
pub const fn as_str(self) -> &'static str
pub const fn convert(num: i32) -> VariantDataType
Trait Implementations§
§impl Clone for VariantDataType
impl Clone for VariantDataType
§fn clone(&self) -> VariantDataType
fn clone(&self) -> VariantDataType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for VariantDataType
impl Debug for VariantDataType
§impl Display for VariantDataType
impl Display for VariantDataType
§impl PartialEq for VariantDataType
impl PartialEq for VariantDataType
§impl VariantConstraint for VariantDataType
impl VariantConstraint for VariantDataType
§type DataArg<'a> = VariantDataType
type DataArg<'a> = VariantDataType
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = VariantDataType
type RetArg = VariantDataType
§fn as_arg(&self) -> <VariantDataType as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <VariantDataType as VariantConstraint>::DataArg<'_>
impl Copy for VariantDataType
impl Eq for VariantDataType
impl PropertyTypeConstraint for VariantDataType
impl StructuralPartialEq for VariantDataType
Auto Trait Implementations§
impl Freeze for VariantDataType
impl RefUnwindSafe for VariantDataType
impl Send for VariantDataType
impl Sync for VariantDataType
impl Unpin for VariantDataType
impl UnwindSafe for VariantDataType
Blanket Implementations§
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