pub trait PropertySerializable: 'static + Copy {
// Required methods
fn prop_to_string(self) -> String;
fn prop_from_string(value: &str) -> Option<Self>;
}Expand description
All valid property values types must implement this trait.
Required Methods§
fn prop_to_string(self) -> String
fn prop_from_string(value: &str) -> Option<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.