Struct pdbtbx::SequencePosition[][src]

pub struct SequencePosition {
    pub start: usize,
    pub start_insert: char,
    pub end: usize,
    pub end_insert: char,
}

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

Fields

start: usize

The starting position

start_insert: char

Initial insertion code of the PDB sequence segment

end: usize

The ending position

end_insert: char

Ending insertion code of the PDB sequence segment

Implementations

impl SequencePosition[src]

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

Create a new SequencePosition

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

Create a new SequencePosition, from a tuple

Trait Implementations

impl Debug 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, 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.