[][src]Struct pdbtbx::UnitCell

pub struct UnitCell { /* fields omitted */ }

A unit cell of a crystal, containing its dimensions and angles

Implementations

impl UnitCell[src]

pub fn new(
    a: f64,
    b: f64,
    c: f64,
    alpha: f64,
    beta: f64,
    gamma: f64
) -> UnitCell
[src]

Create a new UnitCell construct.

Arguments

  • a - a-axis dimension
  • b - b-axis dimension
  • c - c-axis dimension
  • alpha - alpha angle in degrees
  • beta - beta angle in degrees
  • gamma - gamma angle in degrees

pub fn a(&self) -> f64[src]

Get the a-axis dimension

pub fn b(&self) -> f64[src]

Get the b-axis dimension

pub fn c(&self) -> f64[src]

Get the c-axis dimension

pub fn alpha(&self) -> f64[src]

Get the alpha angle in degrees

pub fn beta(&self) -> f64[src]

Get the beta angle in degrees

pub fn gamma(&self) -> f64[src]

Get the gamma angle in degrees

pub fn size(&self) -> (f64, f64, f64)[src]

Get the dimensions in a tuple (a, b, c)

Trait Implementations

impl Clone for UnitCell[src]

impl Debug for UnitCell[src]

impl PartialEq<UnitCell> for UnitCell[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.