Struct pdbtbx::Symmetry [−][src]
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]
&self,
unit_cell: &UnitCell
) -> Vec<TransformationMatrix>
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
impl RefUnwindSafe for Symmetry
[src]
impl Send for Symmetry
[src]
impl Sync for Symmetry
[src]
impl Unpin for Symmetry
[src]
impl UnwindSafe for Symmetry
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,