pub trait Raw: Sized {
// Required methods
fn from_raw(raw: &str) -> Result<Self, Error>;
fn to_raw(&self) -> Cow<'_, str>;
}
Expand description
Trait that needs to be implemented by all types that raw sensor strings should be converted into.
Required Methods§
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.