pub trait StructureIdentifier:
Copy
+ Clone
+ Debug
+ TryFrom<isize>
+ Into<isize> {
// Required methods
fn known_variants() -> &'static [Self];
fn allowed_values(no_catchall: bool) -> Option<HashSet<isize>>;
fn as_str(&self) -> Option<&'static str>;
}Expand description
Trait for the structures represented by samples, identified by an integer.
Required Methods§
Sourcefn known_variants() -> &'static [Self]
fn known_variants() -> &'static [Self]
List all the variants which are not catch-alls.
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.