pub struct PolymerChain {
pub smiles: String,
pub repeat_count: usize,
pub mn: f64,
}Expand description
A single, fully resolved polymer chain instance.
A PolymerChain is the output of a builder: it holds the concrete SMILES
string for the generated chain together with metadata computed at build time.
Fields§
§smiles: StringSMILES string representing this specific chain.
repeat_count: usizeNumber of repeat units incorporated into the chain.
mn: f64Number-average molecular weight in g/mol.
Currently 0.0 until properties::molecular_weight is implemented.
Implementations§
Trait Implementations§
Source§impl Clone for PolymerChain
impl Clone for PolymerChain
Source§fn clone(&self) -> PolymerChain
fn clone(&self) -> PolymerChain
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 moreSource§impl Debug for PolymerChain
impl Debug for PolymerChain
Auto Trait Implementations§
impl Freeze for PolymerChain
impl RefUnwindSafe for PolymerChain
impl Send for PolymerChain
impl Sync for PolymerChain
impl Unpin for PolymerChain
impl UnsafeUnpin for PolymerChain
impl UnwindSafe for PolymerChain
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