Enum grafen::database::ComponentEntry [] [src]

pub enum ComponentEntry {
    VolumeCuboid(Cuboid),
    VolumeCylinder(Cylinder),
    SurfaceSheet(Sheet),
    SurfaceCylinder(Cylinder),
}

Wrapper for accessing a shared interface from different components constructors.

Variants

Methods

impl<'a> ComponentEntry
[src]

[src]

Get a reference to the coordinates of the component.

[src]

Get a mutable reference to the coordinates of the component.

[src]

[src]

Get a reference to the component's optional Residue.

Trait Implementations

impl Clone for ComponentEntry
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ComponentEntry
[src]

[src]

Formats the value using the given formatter.

impl Describe for ComponentEntry
[src]

[src]

Return a descriptive String of the object.

[src]

Return a very short descriptive String of the object. Typically just a name or type.

impl<'a> Component<'a> for ComponentEntry
[src]

[src]

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

[src]

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

[src]

Return the number of atoms in the object.

[src]

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

impl Translate for ComponentEntry
[src]

[src]

[src]

impl From<Cuboid> for ComponentEntry
[src]

[src]

Performs the conversion.

impl From<Cylinder> for ComponentEntry
[src]

[src]

Performs the conversion.

impl From<Sheet> for ComponentEntry
[src]

[src]

Performs the conversion.

impl From<Cylinder> for ComponentEntry
[src]

[src]

Performs the conversion.