Trait ambient_api_core::ecs::SupportedValue
source · pub trait SupportedValuewhere
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§
sourcefn from_value(value: ComponentValue) -> Option<Self>
fn from_value(value: ComponentValue) -> Option<Self>
Converts a ComponentValue
into a Self
.
sourcefn into_value(self) -> ComponentValue
fn into_value(self) -> ComponentValue
Converts a Self
into a ComponentValue
.
Object Safety§
This trait is not object safe.