pub trait Instance: Any {
// Required methods
fn items(&self) -> impl Iterator<Item = &Item>;
fn containers(&self) -> impl Iterator<Item = &Container>;
fn item(&self, id: usize) -> &Item;
fn container(&self, id: usize) -> &Container;
}
Expand description
The static (unmodifiable) representation of a problem instance. This trait defines shared functionality between any instance variant.
Required Methods§
Sourcefn containers(&self) -> impl Iterator<Item = &Container>
fn containers(&self) -> impl Iterator<Item = &Container>
All containers
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.