pub trait ClipVariant:
Copy
+ Ord
+ Default
+ Debug
+ DeserializeOwned
+ 'static {
// Required methods
fn suffix(self) -> &'static str;
fn split() -> &'static [Self];
// Provided methods
fn is_only(self) -> bool { ... }
fn variants() -> Vec<Self> { ... }
fn incomplete(line: &str) -> String { ... }
fn mixed(line: &str) -> String { ... }
}Expand description
Which recording of a line a clip is: the game’s type, with its default for a line’s only clip.
Required Methods§
Provided Methods§
Sourcefn variants() -> Vec<Self>
fn variants() -> Vec<Self>
Every variant a clip may be: the default and the
split ones. A game with other variants too lists
them all.
Sourcefn incomplete(line: &str) -> String
fn incomplete(line: &str) -> String
What a line with some of the split variants but not
all is told.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl ClipVariant for ()
No voices: a line has only its only clip ((), as the engine says
“none” elsewhere).
impl ClipVariant for ()
No voices: a line has only its only clip ((), as the engine says
“none” elsewhere).