Trait StructureIdentifier

Source
pub trait StructureIdentifier:
    Copy
    + Clone
    + Debug
    + TryFrom<isize>
    + Into<isize> {
    // Required method
    fn allowed_values(no_catchall: bool) -> Option<HashSet<isize>>;
}
Expand description

Trait for the structures represented by samples, identified by an integer.

Required Methods§

Source

fn allowed_values(no_catchall: bool) -> Option<HashSet<isize>>

If the structure field allows for any value, return None; otherwise, return Some(HashSet<allowed_values>). no_catchall, if true, ignores the “catch-all” variant in determining what is allowed, if present.

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.

Implementors§