pub trait SupportedValue
where Self: Sized,
{ // Required methods fn from_value(value: ComponentValue) -> Option<Self>; fn into_value(self) -> ComponentValue; }
Expand description

Implemented by all types that can be used as values in components.

Required Methods§

source

fn from_value(value: ComponentValue) -> Option<Self>

Converts a ComponentValue into a Self.

source

fn into_value(self) -> ComponentValue

Converts a Self into a ComponentValue.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SupportedValue for Option<bool>

source§

impl SupportedValue for Option<f32>

source§

impl SupportedValue for Option<f64>

source§

impl SupportedValue for Option<i8>

source§

impl SupportedValue for Option<i16>

source§

impl SupportedValue for Option<i32>

source§

impl SupportedValue for Option<i64>

source§

impl SupportedValue for Option<u8>

source§

impl SupportedValue for Option<u16>

source§

impl SupportedValue for Option<u32>

source§

impl SupportedValue for Option<u64>

source§

impl SupportedValue for Option<()>

source§

impl SupportedValue for Option<Duration>

source§

impl SupportedValue for Option<EntityId>

source§

impl SupportedValue for Option<IVec2>

source§

impl SupportedValue for Option<IVec3>

source§

impl SupportedValue for Option<IVec4>

source§

impl SupportedValue for Option<Mat4>

source§

impl SupportedValue for Option<ProceduralMaterialHandle>

source§

impl SupportedValue for Option<ProceduralMeshHandle>

source§

impl SupportedValue for Option<ProceduralSamplerHandle>

source§

impl SupportedValue for Option<ProceduralTextureHandle>

source§

impl SupportedValue for Option<Quat>

source§

impl SupportedValue for Option<UVec2>

source§

impl SupportedValue for Option<UVec3>

source§

impl SupportedValue for Option<UVec4>

source§

impl SupportedValue for Option<Vec2>

source§

impl SupportedValue for Option<Vec3>

source§

impl SupportedValue for Option<Vec4>

source§

impl SupportedValue for Option<String>

source§

impl SupportedValue for bool

source§

impl SupportedValue for f32

source§

impl SupportedValue for f64

source§

impl SupportedValue for i8

source§

impl SupportedValue for i16

source§

impl SupportedValue for i32

source§

impl SupportedValue for i64

source§

impl SupportedValue for u8

source§

impl SupportedValue for u16

source§

impl SupportedValue for u32

source§

impl SupportedValue for u64

source§

impl SupportedValue for ()

source§

impl SupportedValue for String

source§

impl SupportedValue for Vec<bool>

source§

impl SupportedValue for Vec<f32>

source§

impl SupportedValue for Vec<f64>

source§

impl SupportedValue for Vec<i8>

source§

impl SupportedValue for Vec<i16>

source§

impl SupportedValue for Vec<i32>

source§

impl SupportedValue for Vec<i64>

source§

impl SupportedValue for Vec<u8>

source§

impl SupportedValue for Vec<u16>

source§

impl SupportedValue for Vec<u32>

source§

impl SupportedValue for Vec<u64>

source§

impl SupportedValue for Vec<()>

source§

impl SupportedValue for Vec<Duration>

source§

impl SupportedValue for Vec<EntityId>

source§

impl SupportedValue for Vec<IVec2>

source§

impl SupportedValue for Vec<IVec3>

source§

impl SupportedValue for Vec<IVec4>

source§

impl SupportedValue for Vec<Mat4>

source§

impl SupportedValue for Vec<ProceduralMaterialHandle>

source§

impl SupportedValue for Vec<ProceduralMeshHandle>

source§

impl SupportedValue for Vec<ProceduralSamplerHandle>

source§

impl SupportedValue for Vec<ProceduralTextureHandle>

source§

impl SupportedValue for Vec<Quat>

source§

impl SupportedValue for Vec<UVec2>

source§

impl SupportedValue for Vec<UVec3>

source§

impl SupportedValue for Vec<UVec4>

source§

impl SupportedValue for Vec<Vec2>

source§

impl SupportedValue for Vec<Vec3>

source§

impl SupportedValue for Vec<Vec4>

source§

impl SupportedValue for Vec<String>

Implementors§