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 or Hall 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 herman_mauguin_symbol(&self) -> &str
[src]
Get the fully qualified Herman Mauguin symbol for the space group
pub fn hall_symbol(&self) -> &str
[src]
Get the fully qualified Hall 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 Ord for Symmetry
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Symmetry> for Symmetry
[src]
impl PartialOrd<Symmetry> for Symmetry
[src]
Auto Trait Implementations
impl RefUnwindSafe for Symmetry
impl Send for Symmetry
impl Sync for Symmetry
impl Unpin for Symmetry
impl UnwindSafe for Symmetry
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>,