Enum PropertyDataType
#[repr(i32)]pub enum PropertyDataType {
Show 15 variants
Float = 0,
Int = 1,
Bool = 2,
Color = 3,
Vector2 = 4,
Vector3 = 5,
Vector4 = 6,
Matrix3x3 = 7,
Matrix4x4 = 8,
String = 9,
Pointer = 10,
Resource = 11,
SRTValue2D = 12,
SRTValue3D = 13,
Range = 14,
}Expand description
Enumeration of data types that can be stored as properties.
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.
Resource = 11
Resource data.
SRTValue2D = 12
SRTValue2D data.
SRTValue3D = 13
SRTValue3D data.
Range = 14
Range data.
Implementations§
§impl PropertyDataType
impl PropertyDataType
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> PropertyDataType
Trait Implementations§
§impl Clone for PropertyDataType
impl Clone for PropertyDataType
§fn clone(&self) -> PropertyDataType
fn clone(&self) -> PropertyDataType
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 PropertyDataType
impl Debug for PropertyDataType
§impl Display for PropertyDataType
impl Display for PropertyDataType
§impl PartialEq for PropertyDataType
impl PartialEq for PropertyDataType
§impl VariantConstraint for PropertyDataType
impl VariantConstraint for PropertyDataType
§type DataArg<'a> = PropertyDataType
type DataArg<'a> = PropertyDataType
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 = PropertyDataType
type RetArg = PropertyDataType
§fn as_arg(&self) -> <PropertyDataType as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <PropertyDataType as VariantConstraint>::DataArg<'_>
impl Copy for PropertyDataType
impl Eq for PropertyDataType
impl PropertyTypeConstraint for PropertyDataType
impl StructuralPartialEq for PropertyDataType
Auto Trait Implementations§
impl Freeze for PropertyDataType
impl RefUnwindSafe for PropertyDataType
impl Send for PropertyDataType
impl Sync for PropertyDataType
impl Unpin for PropertyDataType
impl UnwindSafe for PropertyDataType
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