[−][src]Struct codenano::Nanostructure
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]
&mut self,
x: f64,
y: f64,
z: f64,
roll: f64,
pitch: f64,
yaw: f64
) -> usize
pub fn add_nucl(
&mut self,
helix_id: usize,
n: isize,
b: bool,
strand: usize,
pos: usize
) -> usize
[src]
&mut self,
helix_id: usize,
n: isize,
b: bool,
strand: usize,
pos: usize
) -> usize
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]
&mut self,
helix_id: usize,
anti_sens: bool,
begin: isize,
end: isize,
color: u32
)
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
impl Unpin for Nanostructure
impl Send for Nanostructure
impl Sync for Nanostructure
impl UnwindSafe for Nanostructure
impl RefUnwindSafe for Nanostructure
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,