pub enum PackError {
ConstraintsFailed(String),
MaxIterations,
NoTargets,
EmptyMolecule(usize),
InvalidPBCBox {
min: [F; 3],
max: [F; 3],
},
ConflictingPeriodicBoxes {
first: ([F; 3], [F; 3], [bool; 3]),
second: ([F; 3], [F; 3], [bool; 3]),
},
}Variants§
ConstraintsFailed(String)
Molecules could not satisfy constraints even without distance tolerances.
MaxIterations
Maximum iterations reached without convergence.
NoTargets
No molecules were provided.
EmptyMolecule(usize)
A molecule has no atoms.
InvalidPBCBox
A restraint declared a periodic box whose max - min is
non-positive on at least one axis.
ConflictingPeriodicBoxes
Two or more restraints declared periodic boxes with different bounds or different per-axis periodicity flags. Only one periodic box is allowed per packing run.
Trait Implementations§
Source§impl Error for PackError
impl Error for PackError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for PackError
impl RefUnwindSafe for PackError
impl Send for PackError
impl Sync for PackError
impl Unpin for PackError
impl UnsafeUnpin for PackError
impl UnwindSafe for PackError
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