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
VolumeCuboid(Cuboid)
VolumeCylinder(Cylinder)
SurfaceSheet(Sheet)
SurfaceCylinder(Cylinder)
Methods
impl<'a> ComponentEntry
[src]
fn get_coords(&'a self) -> &Vec<Coord>
[src]
Get a reference to the coordinates of the component.
fn get_coords_mut(&'a mut self) -> &mut Vec<Coord>
[src]
Get a mutable reference to the coordinates of the component.
fn get_origin(&self) -> Coord
[src]
fn get_residue(&'a self) -> &'a Option<Residue>
[src]
Get a reference to the component's optional Residue
.
Trait Implementations
impl Clone for ComponentEntry
[src]
fn clone(&self) -> ComponentEntry
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ComponentEntry
[src]
impl Describe for ComponentEntry
[src]
fn describe(&self) -> String
[src]
Return a descriptive String
of the object.
fn describe_short(&self) -> String
[src]
Return a very short descriptive String
of the object. Typically just a name or type.
impl<'a> Component<'a> for ComponentEntry
[src]
fn box_size(&self) -> Coord
[src]
Return the size of the object's bounding box seen from origo. Read more
fn iter_atoms(&'a self) -> AtomIterItem
[src]
Return an Iterator
over all atoms in the object as CurrentAtom
objects.
fn num_atoms(&self) -> u64
[src]
Return the number of atoms in the object.
fn with_pbc(self) -> Self
[src]
Return the component with its coordinates adjusted to lie within its box.
impl Translate for ComponentEntry
[src]
impl From<Cuboid> for ComponentEntry
[src]
fn from(object: Cuboid) -> ComponentEntry
[src]
Performs the conversion.
impl From<Cylinder> for ComponentEntry
[src]
fn from(object: Cylinder) -> ComponentEntry
[src]
Performs the conversion.
impl From<Sheet> for ComponentEntry
[src]
fn from(object: Sheet) -> ComponentEntry
[src]
Performs the conversion.
impl From<Cylinder> for ComponentEntry
[src]
fn from(object: Cylinder) -> ComponentEntry
[src]
Performs the conversion.