Skip to main content

StructureValues

Trait StructureValues 

Source
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§

Source

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§

Source

fn residue_names(&self) -> Box<dyn Iterator<Item = &str> + '_>

Distinct residue names, in native order.

Source

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".

Implementations on Foreign Types§

Source§

impl StructureValues for Structure

Source§

fn chain_labels(&self) -> Box<dyn Iterator<Item = &str> + '_>

Source§

fn residue_names(&self) -> Box<dyn Iterator<Item = &str> + '_>

Source§

fn atom_names(&self) -> Box<dyn Iterator<Item = &str> + '_>

Implementors§