pub enum BuildStrategy {
ByRepeatCount(usize),
ByTargetMn(f64),
ByExactMass(f64),
}Expand description
Determines how many repeat units are incorporated into a generated chain.
All mass-based variants use SI/chemistry conventions:
- molecular weights in g/mol
- monoisotopic masses in g/mol
Variants§
ByRepeatCount(usize)
Generate exactly n repeat units.
ByTargetMn(f64)
Target number-average molecular weight (Mn) in g/mol.
The repeat count is chosen so that the chain Mn is as close as possible
to the given target. Requires molecular weight calculation to be
implemented (see properties::molecular_weight).
ByExactMass(f64)
Target an exact (monoisotopic) chain mass in g/mol.
The repeat count is chosen so that the monoisotopic mass is as close as
possible to the given target. Requires molecular weight calculation to be
implemented (see properties::molecular_weight).
Trait Implementations§
Source§impl Clone for BuildStrategy
impl Clone for BuildStrategy
Source§fn clone(&self) -> BuildStrategy
fn clone(&self) -> BuildStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BuildStrategy
impl RefUnwindSafe for BuildStrategy
impl Send for BuildStrategy
impl Sync for BuildStrategy
impl Unpin for BuildStrategy
impl UnsafeUnpin for BuildStrategy
impl UnwindSafe for BuildStrategy
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