pub struct ValueConverter;
Expand description

A utility to convert values to and from the Value enum.

Trait Implementations§

source§

impl ValueConverterTrait<AudioClip> for ValueConverter

source§

fn into_value(v: AudioClip) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> AudioClip

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<BinaryData> for ValueConverter

source§

fn into_value(v: BinaryData) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> BinaryData

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<CombineMode> for ValueConverter

source§

fn into_value(v: CombineMode) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> CombineMode

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<CompoundPhysicsShape> for ValueConverter

source§

fn into_value(v: CompoundPhysicsShape) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> CompoundPhysicsShape

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<D6DriveParams> for ValueConverter

source§

fn into_value(v: D6DriveParams) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> D6DriveParams

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<D6MotionType> for ValueConverter

source§

fn into_value(v: D6MotionType) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> D6MotionType

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<D6SpringParams> for ValueConverter

source§

fn into_value(v: D6SpringParams) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> D6SpringParams

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<DataHandle> for ValueConverter

source§

fn into_value(v: DataHandle) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> DataHandle

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<DynamicLockFlags> for ValueConverter

source§

fn into_value(v: DynamicLockFlags) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> DynamicLockFlags

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<Entity> for ValueConverter

source§

fn into_value(v: Entity) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> Entity

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<Font> for ValueConverter

source§

fn into_value(v: Font) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> Font

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<FormattedText> for ValueConverter

source§

fn into_value(v: FormattedText) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> FormattedText

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<JointLimitType> for ValueConverter

source§

fn into_value(v: JointLimitType) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> JointLimitType

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<LimitPair> for ValueConverter

source§

fn into_value(v: LimitPair) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> LimitPair

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<MeshStyleFlags> for ValueConverter

source§

fn into_value(v: MeshStyleFlags) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> MeshStyleFlags

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<MeshVisibilityFlags> for ValueConverter

source§

fn into_value(v: MeshVisibilityFlags) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> MeshVisibilityFlags

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<MorphTargetData> for ValueConverter

source§

fn into_value(v: MorphTargetData) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> MorphTargetData

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<Option<MeshStyle>> for ValueConverter

source§

fn into_value(v: Option<MeshStyle>) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> Option<MeshStyle>

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<PlayerIdSet> for ValueConverter

source§

fn into_value(v: PlayerIdSet) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> PlayerIdSet

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<Quat> for ValueConverter

source§

fn into_value(v: Quat) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> Quat

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<RenderModuleData> for ValueConverter

source§

fn into_value(v: RenderModuleData) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> RenderModuleData

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<RigidBodyMode> for ValueConverter

source§

fn into_value(v: RigidBodyMode) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> RigidBodyMode

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<SdfProgram> for ValueConverter

source§

fn into_value(v: SdfProgram) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> SdfProgram

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<SdfSkin> for ValueConverter

source§

fn into_value(v: SdfSkin) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> SdfSkin

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<Shape> for ValueConverter

source§

fn into_value(v: Shape) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> Shape

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<Vec2> for ValueConverter

source§

fn into_value(v: Vec2) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> Vec2

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<Vec3> for ValueConverter

source§

fn into_value(v: Vec3) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> Vec3

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<Vec4> for ValueConverter

source§

fn into_value(v: Vec4) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> Vec4

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<WorldData> for ValueConverter

source§

fn into_value(v: WorldData) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> WorldData

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<WorldMaterial> for ValueConverter

source§

fn into_value(v: WorldMaterial) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> WorldMaterial

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<WorldMaterials> for ValueConverter

source§

fn into_value(v: WorldMaterials) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> WorldMaterials

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<WorldMesh> for ValueConverter

source§

fn into_value(v: WorldMesh) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> WorldMesh

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<bool> for ValueConverter

source§

fn into_value(v: bool) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> bool

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<f32> for ValueConverter

source§

fn into_value(v: f32) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> f32

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<i64> for ValueConverter

source§

fn into_value(v: i64) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> i64

Extracts the value from a Value enum.
source§

impl ValueConverterTrait<u64> for ValueConverter

source§

fn into_value(v: u64) -> Value

Wraps the passed-in value in a Value enum.
source§

fn from_value(v: &Value) -> u64

Extracts the value from a Value enum.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.