[][src]Struct codenano::Nanostructure

pub struct Nanostructure {
    pub helices: Vec<Helix>,
    pub nucl_id: HashMap<(usize, isize, bool), usize>,
    pub nucleotides: Vec<Nucleotide>,
    pub positions: Vec<Point<f64>>,
    pub strands: Vec<Strand>,
    pub cst: DNAConst,
    // some fields omitted
}

Fields

helices: Vec<Helix>nucl_id: HashMap<(usize, isize, bool), usize>nucleotides: Vec<Nucleotide>positions: Vec<Point<f64>>strands: Vec<Strand>cst: DNAConst

Methods

impl Nanostructure[src]

pub fn new() -> Self[src]

pub fn with_constant(cst: DNAConst) -> Self[src]

pub fn finish(self)[src]

pub fn finish_into<P: AsRef<Path>>(self, p: P)[src]

pub fn add_grid_helix(&mut self, h: isize, v: isize) -> usize[src]

pub fn add_helix(
    &mut self,
    x: f64,
    y: f64,
    z: f64,
    roll: f64,
    pitch: f64,
    yaw: f64
) -> usize
[src]

pub fn add_nucl(
    &mut self,
    helix_id: usize,
    n: isize,
    b: bool,
    strand: usize,
    pos: usize
) -> usize
[src]

pub fn add_strand(&mut self, color: u32) -> usize[src]

pub fn draw_strand(
    &mut self,
    helix_id: usize,
    anti_sens: bool,
    begin: isize,
    end: isize,
    color: u32
)
[src]

pub fn get_nucl(&self, helix_id: usize, nucl: isize, antisens: bool) -> usize[src]

pub fn break_strand(&mut self, nucl_id: usize)[src]

pub fn make_jump(&mut self, origin_id: usize, end_id: usize)[src]

pub fn set_scafold(&mut self, nucl_id: usize, scaffold: &str)[src]

pub fn set_color(&mut self, nucl_id: usize, color: u32)[src]

pub fn auto_color(&mut self, theme: &str)[src]

pub fn sequences<I: Iterator<Item = char>>(&self, fillings: I) -> String[src]

pub fn make_pairs(&self) -> Vec<Option<usize>>[src]

pub fn set_group(&mut self, nucl_id: usize, group: &str)[src]

pub fn make_h_bonds(&mut self)[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]