Struct pdbtbx::SequencePosition[][src]

pub struct SequencePosition {
    pub start: isize,
    pub start_insert: Option<String>,
    pub end: isize,
    pub end_insert: Option<String>,
}

The position of the sequence for a cross-reference of sequences.

Fields

start: isize

The starting position

start_insert: Option<String>

Initial insertion code of the PDB sequence segment

end: isize

The ending position

end_insert: Option<String>

Ending insertion code of the PDB sequence segment

Implementations

impl SequencePosition[src]

pub fn new(
    start: isize,
    start_insert: char,
    end: isize,
    end_insert: char
) -> Self
[src]

Create a new SequencePosition

pub fn from_tuple(
    (start, start_insert, end, end_insert): (isize, char, isize, char)
) -> Self
[src]

Create a new SequencePosition, from a tuple

Trait Implementations

impl Clone for SequencePosition[src]

impl Debug for SequencePosition[src]

impl Eq for SequencePosition[src]

impl Ord for SequencePosition[src]

impl PartialEq<SequencePosition> for SequencePosition[src]

impl PartialOrd<SequencePosition> for SequencePosition[src]

impl StructuralEq for SequencePosition[src]

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