pub trait ParseableScore: Score {
// Required methods
fn parse(s: &str) -> Result<Self, ScoreParseError>;
fn to_string_repr(&self) -> String;
}Expand description
Marker trait for scores that can be parsed from a string.
Required Methods§
fn parse(s: &str) -> Result<Self, ScoreParseError>
fn to_string_repr(&self) -> String
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.