pub struct ViennaRNA { /* private fields */ }Expand description
The union of different parameterizations, may contain redundant fallback parameters.
Implementations§
Source§impl ViennaRNA
impl ViennaRNA
Sourcepub fn from_andrunescu_params(params: &'static AndronescuParams) -> Self
pub fn from_andrunescu_params(params: &'static AndronescuParams) -> Self
Initializes a model from fitted parameters, which means there is no possiblity to change the temperature.
Sourcepub fn from_thermo_params(
params: &'static RNAThermoParams,
celsius: f64,
) -> Self
pub fn from_thermo_params( params: &'static RNAThermoParams, celsius: f64, ) -> Self
Initializes a model from thermodynamic parameters. That’s the default!
Trait Implementations§
Source§impl EnergyModel for ViennaRNA
impl EnergyModel for ViennaRNA
fn temperature(&self) -> f64
fn can_pair(&self, b1: Base, b2: Base) -> bool
fn min_hairpin_size(&self) -> usize
fn energy_of_structure<T: LoopDecomposition>( &self, sequence: &[Base], structure: &T, ) -> Result<i32, EnergyError>
fn energy_of_loop( &self, sequence: &[Base], nn_loop: &NearestNeighborLoop, ) -> Result<i32, EnergyError>
Auto Trait Implementations§
impl Freeze for ViennaRNA
impl RefUnwindSafe for ViennaRNA
impl Send for ViennaRNA
impl Sync for ViennaRNA
impl Unpin for ViennaRNA
impl UnsafeUnpin for ViennaRNA
impl UnwindSafe for ViennaRNA
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more