[][src]Struct protein_core::structure::atom::AtomName

pub struct AtomName(pub [u8; 4]);

Internally, an AtomName is represented as an array of 4 bytes.

For convinience, FromStr is implemented for AtomName, so you can:

use std::str::FromStr;
use protein_core::structure::AtomName;

let atom = AtomName::from_str("O2").unwrap();
assert_eq!(atom, AtomName([b'O', b'2', b' ', b' ']));

Trait Implementations

impl Clone for AtomName[src]

impl Debug for AtomName[src]

impl Eq for AtomName[src]

impl FromStr for AtomName[src]

type Err = ParseAtomNameError

The associated error which can be returned from parsing.

impl PartialEq<AtomName> for AtomName[src]

impl Serialize for AtomName[src]

impl StructuralEq for AtomName[src]

impl StructuralPartialEq for AtomName[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.