Enum PropertyField

#[repr(i32)]
pub enum PropertyField {
Show 19 variants Whole = 0, TranslationX = 1, TranslationY = 2, TranslationZ = 3, ScaleX = 4, ScaleY = 5, ScaleZ = 6, RotationX = 7, RotationY = 8, RotationZ = 9, ColorR = 10, ColorG = 11, ColorB = 12, ColorA = 13, VectorX = 14, VectorY = 15, VectorZ = 16, VectorW = 17, Rotation = 18,
}
Expand description

Property field.

Variants§

§

Whole = 0

Whole property value.

§

TranslationX = 1

Translation X component, presented as float.

§

TranslationY = 2

Translation Y component, presented as float.

§

TranslationZ = 3

Translation Z component, presented as float.

§

ScaleX = 4

Scale X component, presented as float.

§

ScaleY = 5

Scale Y component, presented as float.

§

ScaleZ = 6

Scale Z component, presented as float.

§

RotationX = 7

Rotation X component, presented as float.

§

RotationY = 8

Rotation Y component, presented as float.

§

RotationZ = 9

Rotation Z component, presented as float.

§

ColorR = 10

Color R field, presented as float.

§

ColorG = 11

Color G field, presented as float.

§

ColorB = 12

Color B field, presented as float.

§

ColorA = 13

Color A field, presented as float.

§

VectorX = 14

Vector X field, presented as float.

§

VectorY = 15

Vector Y field, presented as float.

§

VectorZ = 16

Vector Z field, presented as float.

§

VectorW = 17

Vector W field, presented as float.

§

Rotation = 18

Rotation component of property of SRTValue3D type, presented as Quaternion.

Implementations§

§

impl PropertyField

pub fn as_str(self) -> &'static str

pub fn convert(num: i32) -> PropertyField

Trait Implementations§

§

impl Clone for PropertyField

§

fn clone(&self) -> PropertyField

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for PropertyField

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for PropertyField

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq for PropertyField

§

fn eq(&self, other: &PropertyField) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl VariantConstraint for PropertyField

§

type DataArg<'a> = PropertyField

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 = PropertyField

Specifies the type of the return value received from Variant. Generally, this type matches Self, except for Resource. Read more
§

fn as_arg(&self) -> <PropertyField as VariantConstraint>::DataArg<'_>

Converts Self to a type accepted by Variant::create or Object::set_property.
§

impl Copy for PropertyField

§

impl Eq for PropertyField

§

impl PropertyTypeConstraint for PropertyField

§

impl StructuralPartialEq for PropertyField

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
§

impl<T> AsAny for T
where T: 'static,

§

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

§

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

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Inherits<T> for T

§

fn upcast(self) -> Base

§

fn upcast_ref(&self) -> &Base

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.