Struct ark_api::world::ValueConverter
source · [−]pub struct ValueConverter;
Expand description
A utility to convert values to and from the Value
enum.
Trait Implementations
sourceimpl ValueConverterTrait<AudioClip> for ValueConverter
impl ValueConverterTrait<AudioClip> for ValueConverter
sourcefn into_value(v: AudioClip) -> Value
fn into_value(v: AudioClip) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> AudioClip
fn from_value(v: &Value) -> AudioClip
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<BinaryData> for ValueConverter
impl ValueConverterTrait<BinaryData> for ValueConverter
sourcefn into_value(v: BinaryData) -> Value
fn into_value(v: BinaryData) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> BinaryData
fn from_value(v: &Value) -> BinaryData
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<CharacterCollisionFlags> for ValueConverter
impl ValueConverterTrait<CharacterCollisionFlags> for ValueConverter
sourcefn into_value(v: CharacterCollisionFlags) -> Value
fn into_value(v: CharacterCollisionFlags) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> CharacterCollisionFlags
fn from_value(v: &Value) -> CharacterCollisionFlags
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<CombineMode> for ValueConverter
impl ValueConverterTrait<CombineMode> for ValueConverter
sourcefn into_value(v: CombineMode) -> Value
fn into_value(v: CombineMode) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> CombineMode
fn from_value(v: &Value) -> CombineMode
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<CompoundPhysicsShape> for ValueConverter
impl ValueConverterTrait<CompoundPhysicsShape> for ValueConverter
sourcefn into_value(v: CompoundPhysicsShape) -> Value
fn into_value(v: CompoundPhysicsShape) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> CompoundPhysicsShape
fn from_value(v: &Value) -> CompoundPhysicsShape
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<D6DriveParams> for ValueConverter
impl ValueConverterTrait<D6DriveParams> for ValueConverter
sourcefn into_value(v: D6DriveParams) -> Value
fn into_value(v: D6DriveParams) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> D6DriveParams
fn from_value(v: &Value) -> D6DriveParams
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<D6MotionType> for ValueConverter
impl ValueConverterTrait<D6MotionType> for ValueConverter
sourcefn into_value(v: D6MotionType) -> Value
fn into_value(v: D6MotionType) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> D6MotionType
fn from_value(v: &Value) -> D6MotionType
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<D6SpringParams> for ValueConverter
impl ValueConverterTrait<D6SpringParams> for ValueConverter
sourcefn into_value(v: D6SpringParams) -> Value
fn into_value(v: D6SpringParams) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> D6SpringParams
fn from_value(v: &Value) -> D6SpringParams
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<DataHandle> for ValueConverter
impl ValueConverterTrait<DataHandle> for ValueConverter
sourcefn into_value(v: DataHandle) -> Value
fn into_value(v: DataHandle) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> DataHandle
fn from_value(v: &Value) -> DataHandle
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<DynamicLockFlags> for ValueConverter
impl ValueConverterTrait<DynamicLockFlags> for ValueConverter
sourcefn into_value(v: DynamicLockFlags) -> Value
fn into_value(v: DynamicLockFlags) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> DynamicLockFlags
fn from_value(v: &Value) -> DynamicLockFlags
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<Entity> for ValueConverter
impl ValueConverterTrait<Entity> for ValueConverter
sourcefn into_value(v: Entity) -> Value
fn into_value(v: Entity) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> Entity
fn from_value(v: &Value) -> Entity
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<FormattedText> for ValueConverter
impl ValueConverterTrait<FormattedText> for ValueConverter
sourcefn into_value(v: FormattedText) -> Value
fn into_value(v: FormattedText) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> FormattedText
fn from_value(v: &Value) -> FormattedText
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<JointLimitType> for ValueConverter
impl ValueConverterTrait<JointLimitType> for ValueConverter
sourcefn into_value(v: JointLimitType) -> Value
fn into_value(v: JointLimitType) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> JointLimitType
fn from_value(v: &Value) -> JointLimitType
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<JointType> for ValueConverter
impl ValueConverterTrait<JointType> for ValueConverter
sourcefn into_value(v: JointType) -> Value
fn into_value(v: JointType) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> JointType
fn from_value(v: &Value) -> JointType
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<LimitPair> for ValueConverter
impl ValueConverterTrait<LimitPair> for ValueConverter
sourcefn into_value(v: LimitPair) -> Value
fn into_value(v: LimitPair) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> LimitPair
fn from_value(v: &Value) -> LimitPair
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<MeshStyleFlags> for ValueConverter
impl ValueConverterTrait<MeshStyleFlags> for ValueConverter
sourcefn into_value(v: MeshStyleFlags) -> Value
fn into_value(v: MeshStyleFlags) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> MeshStyleFlags
fn from_value(v: &Value) -> MeshStyleFlags
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<MeshVisibilityFlags> for ValueConverter
impl ValueConverterTrait<MeshVisibilityFlags> for ValueConverter
sourcefn into_value(v: MeshVisibilityFlags) -> Value
fn into_value(v: MeshVisibilityFlags) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> MeshVisibilityFlags
fn from_value(v: &Value) -> MeshVisibilityFlags
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<MorphTargetData> for ValueConverter
impl ValueConverterTrait<MorphTargetData> for ValueConverter
sourcefn into_value(v: MorphTargetData) -> Value
fn into_value(v: MorphTargetData) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> MorphTargetData
fn from_value(v: &Value) -> MorphTargetData
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<Option<MeshStyle>> for ValueConverter
impl ValueConverterTrait<Option<MeshStyle>> for ValueConverter
sourcefn into_value(v: Option<MeshStyle>) -> Value
fn into_value(v: Option<MeshStyle>) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> Option<MeshStyle>
fn from_value(v: &Value) -> Option<MeshStyle>
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<PlayerIdSet> for ValueConverter
impl ValueConverterTrait<PlayerIdSet> for ValueConverter
sourcefn into_value(v: PlayerIdSet) -> Value
fn into_value(v: PlayerIdSet) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> PlayerIdSet
fn from_value(v: &Value) -> PlayerIdSet
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<Quat> for ValueConverter
impl ValueConverterTrait<Quat> for ValueConverter
sourcefn into_value(v: Quat) -> Value
fn into_value(v: Quat) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> Quat
fn from_value(v: &Value) -> Quat
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<RenderModuleData> for ValueConverter
impl ValueConverterTrait<RenderModuleData> for ValueConverter
sourcefn into_value(v: RenderModuleData) -> Value
fn into_value(v: RenderModuleData) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> RenderModuleData
fn from_value(v: &Value) -> RenderModuleData
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<RigidBodyMode> for ValueConverter
impl ValueConverterTrait<RigidBodyMode> for ValueConverter
sourcefn into_value(v: RigidBodyMode) -> Value
fn into_value(v: RigidBodyMode) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> RigidBodyMode
fn from_value(v: &Value) -> RigidBodyMode
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<SdfProgram> for ValueConverter
impl ValueConverterTrait<SdfProgram> for ValueConverter
sourcefn into_value(v: SdfProgram) -> Value
fn into_value(v: SdfProgram) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> SdfProgram
fn from_value(v: &Value) -> SdfProgram
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<SdfSkin> for ValueConverter
impl ValueConverterTrait<SdfSkin> for ValueConverter
sourcefn into_value(v: SdfSkin) -> Value
fn into_value(v: SdfSkin) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> SdfSkin
fn from_value(v: &Value) -> SdfSkin
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<Shape> for ValueConverter
impl ValueConverterTrait<Shape> for ValueConverter
sourcefn into_value(v: Shape) -> Value
fn into_value(v: Shape) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> Shape
fn from_value(v: &Value) -> Shape
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<Vec2> for ValueConverter
impl ValueConverterTrait<Vec2> for ValueConverter
sourcefn into_value(v: Vec2) -> Value
fn into_value(v: Vec2) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> Vec2
fn from_value(v: &Value) -> Vec2
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<Vec3> for ValueConverter
impl ValueConverterTrait<Vec3> for ValueConverter
sourcefn into_value(v: Vec3) -> Value
fn into_value(v: Vec3) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> Vec3
fn from_value(v: &Value) -> Vec3
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<Vec4> for ValueConverter
impl ValueConverterTrait<Vec4> for ValueConverter
sourcefn into_value(v: Vec4) -> Value
fn into_value(v: Vec4) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> Vec4
fn from_value(v: &Value) -> Vec4
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<WorldData> for ValueConverter
impl ValueConverterTrait<WorldData> for ValueConverter
sourcefn into_value(v: WorldData) -> Value
fn into_value(v: WorldData) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> WorldData
fn from_value(v: &Value) -> WorldData
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<WorldMaterial> for ValueConverter
impl ValueConverterTrait<WorldMaterial> for ValueConverter
sourcefn into_value(v: WorldMaterial) -> Value
fn into_value(v: WorldMaterial) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> WorldMaterial
fn from_value(v: &Value) -> WorldMaterial
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<WorldMaterials> for ValueConverter
impl ValueConverterTrait<WorldMaterials> for ValueConverter
sourcefn into_value(v: WorldMaterials) -> Value
fn into_value(v: WorldMaterials) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> WorldMaterials
fn from_value(v: &Value) -> WorldMaterials
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<WorldMesh> for ValueConverter
impl ValueConverterTrait<WorldMesh> for ValueConverter
sourcefn into_value(v: WorldMesh) -> Value
fn into_value(v: WorldMesh) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> WorldMesh
fn from_value(v: &Value) -> WorldMesh
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<bool> for ValueConverter
impl ValueConverterTrait<bool> for ValueConverter
sourcefn into_value(v: bool) -> Value
fn into_value(v: bool) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> bool
fn from_value(v: &Value) -> bool
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<f32> for ValueConverter
impl ValueConverterTrait<f32> for ValueConverter
sourcefn into_value(v: f32) -> Value
fn into_value(v: f32) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> f32
fn from_value(v: &Value) -> f32
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<i64> for ValueConverter
impl ValueConverterTrait<i64> for ValueConverter
sourcefn into_value(v: i64) -> Value
fn into_value(v: i64) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> i64
fn from_value(v: &Value) -> i64
Extracts the value from a Value
enum.
sourceimpl ValueConverterTrait<u64> for ValueConverter
impl ValueConverterTrait<u64> for ValueConverter
sourcefn into_value(v: u64) -> Value
fn into_value(v: u64) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> u64
fn from_value(v: &Value) -> u64
Extracts the value from a Value
enum.
Auto Trait Implementations
impl RefUnwindSafe for ValueConverter
impl Send for ValueConverter
impl Sync for ValueConverter
impl Unpin for ValueConverter
impl UnwindSafe for ValueConverter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more