Trait grafen::system::Component [] [src]

pub trait Component<'a> {
    fn box_size(&self) -> Coord;
fn iter_atoms(&'a self) -> AtomIterItem<'a>;
fn num_atoms(&self) -> u64;
fn with_pbc(self) -> Self; }

Methods for yielding atoms and output information from constructed objects.

Required Methods

Return the size of the object's bounding box seen from origo.

That is, for a component of size (1, 1, 1) with origin (1, 1, 1) this returns (2, 2, 2).

Return an Iterator over all atoms in the object as CurrentAtom objects.

Return the number of atoms in the object.

Return the component with its coordinates adjusted to lie within its box.

Implementors