Helix

Struct Helix 

Source
pub struct Helix {
    pub id: String,
    pub class: HelixClass,
    pub start: (char, ResidueSerial),
    pub end: (char, ResidueSerial),
    pub comment: String,
}
Expand description

§Overview

HELIX records are used to identify the position of helices in the molecule. Helices are named, numbered, and classified by type. The residues where the helix begins and ends are noted, as well as the total length.

§Record Format

COLUMNSDATA TYPEFIELDDEFINITION
1 - 6Record name“HELIX “
8 - 10IntegerserNumSerial number of the helix. This starts
at 1 and increases incrementally.
12 - 14LString(3)helixIDHelix identifier. In addition to a serial
number, each helix is given an
alphanumeric character helix identifier.
16 - 18Residue nameinitResNameName of the initial residue.
20CharacterinitChainIDChain identifier for the chain containing
this helix.
22 - 25IntegerinitSeqNumSequence number of the initial residue.
26ACharinitICodeInsertion code of the initial residue.
28 - 30Residue nameendResNameName of the terminal residue of the helix.
32CharacterendChainIDChain identifier for the chain containing
this helix.
34 - 37IntegerendSeqNumSequence number of the terminal residue.
38ACharendICodeInsertion code of the terminal residue.
39 - 40IntegerhelixClassHelix class (see below).
41 - 70StringcommentComment about this helix.
72 - 76IntegerlengthLength of this helix.

§Details

Additional HELIX records with different serial numbers and identifiers occur if more than one helix is present. The initial residue of the helix is the N-terminal residue. Helices are classified as follows:

| | CLASS NUMBER |

TYPE OF HELIX(COLUMNS 39 - 40)
Right-handed alpha (default)1
Right-handed omega2
Right-handed pi3
Right-handed gamma4
Right-handed 3 - 105
Left-handed alpha6
Left-handed omega7
Left-handed gamma8
2 - 7 ribbon/helix9
Polyproline10

Fields§

§id: String§class: HelixClass§start: (char, ResidueSerial)§end: (char, ResidueSerial)§comment: String

Trait Implementations§

Source§

impl Clone for Helix

Source§

fn clone(&self) -> Helix

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Helix

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for Helix

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Helix

§

impl RefUnwindSafe for Helix

§

impl Send for Helix

§

impl Sync for Helix

§

impl Unpin for Helix

§

impl UnwindSafe for Helix

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.