pub trait StructureValues {
// Required method
fn chain_labels(&self) -> Box<dyn Iterator<Item = &str> + '_>;
// Provided methods
fn residue_names(&self) -> Box<dyn Iterator<Item = &str> + '_> { ... }
fn atom_names(&self) -> Box<dyn Iterator<Item = &str> + '_> { ... }
}Expand description
Lent, structure-derived completion values.
Implementors expose identifiers from native indexes as borrowed strings; completion never builds a second vocabulary or copies the structure’s columns. A value the structure does not carry is simply omitted.
Required Methods§
Sourcefn chain_labels(&self) -> Box<dyn Iterator<Item = &str> + '_>
fn chain_labels(&self) -> Box<dyn Iterator<Item = &str> + '_>
Distinct chain identifiers, in native order. Both namespaces are offered when a structure stores them separately.
Provided Methods§
Sourcefn residue_names(&self) -> Box<dyn Iterator<Item = &str> + '_>
fn residue_names(&self) -> Box<dyn Iterator<Item = &str> + '_>
Distinct residue names, in native order.
Sourcefn atom_names(&self) -> Box<dyn Iterator<Item = &str> + '_>
fn atom_names(&self) -> Box<dyn Iterator<Item = &str> + '_>
Distinct atom names, in native order.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".