Struct pdbtbx::Symmetry[][src]

pub struct Symmetry { /* fields omitted */ }

A Space group of a crystal

Implementations

impl Symmetry[src]

pub fn new(symbol: &str) -> Option<Self>[src]

Create a new Symmetry based on a fully qualified Herman Mauguin symbol

pub fn from_index(index: usize) -> Option<Self>[src]

Create a new Symmetry based on the index of a symbol in Int. Crys. Handbook Vol A 2016

pub fn symbol(&self) -> &str[src]

Get the fully qualified Herman Mauguin symbol for the space group

pub fn z(&self) -> usize[src]

Get the Z value, the number of polymeric sub units in a unit cell, for this space group

pub fn index(&self) -> usize[src]

Get the index of this space group in Int. Crys. Handbook Vol A 2016

pub fn transformations(&self) -> Vec<TransformationMatrix>[src]

Get the transformations for this space group needed to fill the unit cell. The first transformation is always an identity transformation. The translation is fractional to the unit cell size.

pub fn transformations_absolute(
    &self,
    unit_cell: &UnitCell
) -> Vec<TransformationMatrix>
[src]

Get the transformations for this space group needed to fill the unit cell. The first transformation is always an identity transformation. The translation is in Å.

Trait Implementations

impl Clone for Symmetry[src]

impl Debug for Symmetry[src]

impl Eq for Symmetry[src]

impl PartialEq<Symmetry> for Symmetry[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.