[][src]Struct spglib::spacegroup::Spacegroup

pub struct Spacegroup {
    pub number: i32,
    pub international_short: String,
    pub international_full: String,
    pub international: String,
    pub schoenflies: String,
    pub hall_symbol: String,
    pub choice: String,
    pub pointgroup_international: String,
    pub pointgroup_schoenflies: String,
    pub arithmetic_crystal_class_number: i32,
    pub arithmetic_crystal_class_symbol: String,
}

Container for a spacegroup's properties

Fields

number: i32

Space group number as defined in the International Tables for Crystallography.

international_short: String

Abbreviated Hermann-Mauguin notation spacegroup symbol.

international_full: String

Full Hermann-Mauguin notation spacegroup symbol.

international: String

Full Hermann-Mauguin notation spacegroup symbol.

schoenflies: String

Schoenflies notation spacegroup symbol.

hall_symbol: String

Hall symbol.

choice: String

Information on unique axis, settings, or cell choices.

pointgroup_international: String

Full Hermann-Mauguin notation pointgroup symbol.

pointgroup_schoenflies: String

Schoenflies notation pointgroup symbol.

arithmetic_crystal_class_number: i32

Arithmetic notation crystal class number.

arithmetic_crystal_class_symbol: String

Arithmetic notation crystal class symbol.

Implementations

impl Spacegroup[src]

pub fn from_hall_number(hall_number: i32) -> Spacegroup[src]

Returns a spacegroup initialized by hall number

Example

Get the spacegroup for a BCC cell (hall number 529).

use spglib::spacegroup::Spacegroup;

let group = Spacegroup::from_hall_number(529);
assert_eq!("Im-3m", group.international_short);

Trait Implementations

impl Clone for Spacegroup[src]

impl Debug for Spacegroup[src]

impl TryFrom<SpglibSpacegroupType> for Spacegroup[src]

type Error = SpglibError

The type returned in the event of a conversion error.

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.