pub struct ConstraintSet {
pub bonds: Vec<BondConstraint>,
pub angles: Vec<AngleConstraint>,
}Expand description
Complete set of bond and angle constraints for a molecule.
Fields§
§bonds: Vec<BondConstraint>§angles: Vec<AngleConstraint>Implementations§
Source§impl ConstraintSet
impl ConstraintSet
Sourcepub fn violated_count(&self, coords: &Coords3D) -> usize
pub fn violated_count(&self, coords: &Coords3D) -> usize
Count of constraints currently violated (outside tolerance).
Sourcepub fn max_violation(&self, coords: &Coords3D) -> f64
pub fn max_violation(&self, coords: &Coords3D) -> f64
Maximum violation magnitude among all constraints.
Trait Implementations§
Source§impl Clone for ConstraintSet
impl Clone for ConstraintSet
Source§fn clone(&self) -> ConstraintSet
fn clone(&self) -> ConstraintSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConstraintSet
impl RefUnwindSafe for ConstraintSet
impl Send for ConstraintSet
impl Sync for ConstraintSet
impl Unpin for ConstraintSet
impl UnsafeUnpin for ConstraintSet
impl UnwindSafe for ConstraintSet
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